Semantic Elements
HTML <header> element
Groups introductory or navigational content for the page or a section. A header is not necessarily a page-wide banner landmark. A header can group a heading, introductory text and navigation. The page-wide header and a nested article header have different landmark implications; keep navigation labels distinct. It accepts global HTML attributes; individual global features may be inapplicable or restricted.
Formal Syntax & Structure
html syntaxhtml
<header>Introductory content</header>Return Value
HTMLElement
Content model: Flow content; no nested header or footer descendants.
Working Example
Example Snippethtml
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <title>HTML example</title> </head> <body> <header> <h1>Field notes</h1> <p>A weekly journal.</p> </header> </body></html>