In xhtml 1.0, hn (h1 to h6) should represent the structure of the document, like chapters in a book, and they all come down from the body . Html5 has a section , article , header , hgroup , and it seems that the hn tags come off one of these tags and then do not belong to the body element. as
<html> <body> <h1>My personal homepage</h1> <section id="resume"> <header> <h1>My resumre</h1> <p>A brief description of my skills</p> </header> </section> </body>
In xhtml 1.0, I would do:
<html> <body> <h1>My personal homepage</h1> <div id="resume"> <h2>My resumre</h2> <p>A brief description of my skills</p> </div> </body>
Does it make sense? Or should I follow the same rules as in xhtml 1.0, and ignore the section, title, etc ... and make hn tags regarding body elements?
The tips and answers regarding semantics and SEO are most valuable to me.
source share