How do I use the header html tag?
-
Also see:
How do I use the section html tag?
How do I use the article html tag?The header tag is semantic element, it can be used multiple times within a html document. It could be header for html articles or header for html sections
<!DOCTYPE html> <html> <body> <article> <header> <h1>Heading One</h1> <ul> <li>Option 1</li> <li>Option 2</li> </ul> </header> <p>Dui vivamus arcu felis bibendum ut. Suspendisse faucibus interdum posuere lorem ipsum dolor sit. Faucibus turpis in eu mi bibendum.</p> </article> </body> </html>
© Lightnetics 2024