Semantic HTML
HTML <header> Tag Definition and Usage The <header> element represents a container for introductory content or a set of navigational links. A <header> element typically contains: one or more heading elements (<h1> – <h6>) logo or icon authorship information Example
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<!DOCTYPE html> <html> <body> <article> <header> <h3>A heading here</h3> <p>Posted by John Doe</p> <p>Some additional information here</p> </header> <p>Lorem Ipsum dolor set amet....</p> </article> </body> </html> |
Result A heading here Posted by John Doe Some additional information here Lorem Ipsum dolor set amet. CSS Navigation […]