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.

उदाहरण देखें

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

✍️ अब आपकी बारी

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

← कोर्स पर वापस