I can't really understand what is the right way of using headings in HTML5. For example, is this code correct:
<body>
<h1>Body Heading H1</h1>
<article>
<h2>Article Heading H2</h2>
<section>
<h2>First Section Heading H2</h2>
</section>
<section>
<h2>Second Section Heading H2</h2>
</section>
</article>
</body>
And can I replace H2 tags with H1 in such cases for both, article and section or only for article?
P.S. I want it to be as SEO optimized as possible as well
`s are probably better as `
– aardrian Jun 16 '16 at 20:16`s). Do not believe anyone who tells you to go all-`
` as that was never supported: http://html5doctor.com/computer-says-no-to-html5-document-outline/