0 of 12 lessons completed
Headings structure content, and semantic comments improve code clarity.
HTML provides six heading levels: <h1> (most important) to <h6>.
HTML<h1>Main Heading</h1> <h2>Subheading</h2>
HTML5 semantic elements like <header> and comments clarify structure.
HTML<!-- Main content section --> <header> <h1>Welcome</h1> </header>
Create a webpage with:
<header> with an <h1> and a comment<h2> for a subsection<h2>