DEV Community

Cover image for HTML tags | header
Carlos Espada
Carlos Espada

Posted on

HTML tags | header

It is used to include introductory content or a set of links to navigate. Usually includes a header (<h1>-<h6>), a logo, a search form, information about the author...

Can be repeated within the same document but cannot be used within <footer>, <address> or another <header>.

It does not contribute to the outline of the document.

It has an implicit ARIA role banner, or none if it is a descendant of an <article>, <aside>, <main>, <nav> or <section> or of an element with an article, complementary, main, navigation or region role.

  • Type: block
  • Self-closing: No
  • Semantic value: Yes

Definition | Example | Support

Discussion (0)