W3C Validation Says H1 In Article Is Invalid
I'm running my website through the W3C validation service. I'm getting an error message for the following HTML:
Solution 1:
It is valid to use h1
there.
The W3C Markup Validator does report a warning, not an error. You can ignore warnings if you like to.
The HTML5 spec "encourages" authors to use "headings of the appropriate rank" instead of h1
everywhere. But an encouragement is not a normative requirement.
Solution 2:
<h1>
Tag must be used as top-level heading, i.e, as page heading/tittle. Here you are the W3C Reference
That's is because SEO purposes; ensuring content is formatted in the best way possible to aid search engine indexing; and because technical correctness; ensuring that markup is written in accordance with the appropriate W3C spec.
Depending on the strucutre of your page, you can use more than one perhaps, but it's better not tu use more than one <h1>
tag
Post a Comment for "W3C Validation Says H1 In Article Is Invalid"