Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <header> tags


May 04, 2021 HTML Reference Manual


Table of contents


HTML .lt;header.gt; tags

The label represents introductory content and lets you understand what the page is about and is navigational.

The label may contain title elements or other elements, such as the following example:

The header of the .

<article>
<header>
<h1>Internet Explorer 9</h1>
<p><time pubdate datetime="2011-03-15"></time></p>
</header>
<p>Windows Internet Explorer 9 (缩写为 IE9)是在2011年3月14日21:00发布的</p>
</article>

Try it out . . .

Browser support

HTML <header> tags HTML <header> tags HTML <header> tags HTML <header> tags HTML <header> tags

IE 9, Firefox, Opera, Chrome, and Safari support the hashtags.

Note: IE 8 or earlier versions of IE browsers do not support the label.


Label definition and instructions for use

The label defines the header of the document or part of the document.

The element should serve as a container for introductory content or navigation link bars.

In a document, you can define more than one element.

Note: The label cannot be placed inside the .lt;footer>, slt;address> or another .lt;header?gt; element.


The difference between HTML 4.01 and HTML5

The label is the new label in HTML 5.


Global properties

The label supports the global properties of HTML.


The event property

The tag supports the event properties of HTML.