Although I really should know this, I am afraid that I will not get it completely. After reading various articles, reading books and talking to others, I still do not quite understand the correct HTML5 structure section. Is it appropriate to have a tag h1in each sectionand / or article? Does creating a new sectionor articlestarting process h1to h2?
I get the impression that each "block" should be allowed to have a "header" structure.
For example, is this the correct HTML5?
<!doctype html>
<html>
<head>
<title>
<body>
<section>
<h1>Here is a section with articles in</h1>
<article>
<h1>Heading</h1>
<h2>sub heading</h2>
<p>A paragraph>
</article>
<article>
<h1>Heading</h1>
<h2>sub heading</h2>
<p>A paragraph</p>
</article>
...
</section>
<section>
<h1>Here is a section with articles in</h1>
<article>
<h1>Heading</h1>
<h2>sub heading</h2>
<p>A paragraph>
</article>
<article>
<h1>Heading</h1>
<h2>sub heading</h2>
<p>A paragraph</p>
</article>
...
</section>
</body>
</html>
source
share