Starlit Daily

📚 › HTML: build the structure of a web page

2. Headings: h1 to h6

Headings organise a page from the most important to the least. h1 is the main title and should appear once per page. h2 starts a major section, h3 a subsection, and so on down to h6.

Screen readers and search engines use the heading levels to understand the structure of the page.

Show example

<h1>Main title</h1>
<h2>Section</h2>
<h3>Sub-section</h3>

✍️ Your turn

Make an h2 that says Lessons, and an h3 that says Next steps.

← Back to course