Problem with HTML document validation

2

When validated my HTML document is giving the following problem

  

Section lacks heading. Consider using h2-h6 elements

But I do not need this, it's really unnecessary for the purpose of my site (titles only in articles, blog style). Can I ignore this or can it hurt me? Being forced to hide that title in CSS?

Example of my code

 <header>
       <h1></h1> --
       <nav>
       </nav>
    </header>
    <main>
       <section>
          <article>
             <h2></h2> --
          </article>
       </section>
    </main>
    
asked by anonymous 12.07.2016 / 21:22

1 answer

2

If you want to conform to this pattern you need to put a header as it was done.

And of course you can ignore alerts as you see fit. I do not see problems if it is your wish. It's not a must, it's not a mistake, it's just a recommendation.

If you still want to conform to the default and do not have this alert, consider changing <section> to <div> , for example. A section requires a header, a division does not require. The decision is yours which is more appropriate.

Specification .

    
12.07.2016 / 21:34