HTML
Semantic HTML
Use landmarks, headings and native controls to make documents understandable.
On this page
Start with landmarks
Use header, nav, main and footer to identify major regions. Keep one main region per page. A heading should describe the section that follows, rather than merely change the font size.
Choose native controls
A button performs an action; a link navigates to another resource. Native elements support keyboard interaction without extra JavaScript.
Check the result
Navigate using Tab, inspect the accessibility tree in browser developer tools, and verify that the document remains readable without CSS.
Example
<main>
<h1>Learning notes</h1>
<article>
<h2>First steps</h2>
<p>Start with semantic markup.</p>
</article>
</main>