Posts in current category

HTML5 <header> tag


May 03, 2021 15:00 HTML5


Table of contents


Instance

Html5, the label is used to represent introductory content, that is, the header in the document is defined, refer to 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

HTML5 <header> tag HTML5 <header> tag HTML5 <header> tag HTML5 <header> tag HTML5 <header> tag

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.