📚 › 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.