HTML5 header tags how to use? Introduction to the role of HTML5 header tags

Source: Internet
Author: User
This article mainly introduces the HTML5 header label interpretation and HTML5 header label role of the introduction, and finally made a summary of the header label. Let's see this article together

First of all we need to know HTML5 header tag how to use?

The

In a document, you can define multiple

Comments

Header tag Element basic usage Description:

It is customary to use div tag layout pages before the HTML5 version, and add the header tag element to the HTML5 on the div tag basis. Also called the "

"Header" is a common name for everyone in the HTML layout, so a new header tag element has been added to the HTML5. It is possible to understand why the new header in HTML5 is the tag element.

In addition to using the header tag directly, you can set the class or ID on the header.

HTML5 the syntax structure of the header tag:

The header tag element is the same as the div usage. There is a beginning to have a closure.


1. Do not give ID or class directly


2. Setting the ID


3. Set class


4. Features: like div tag elements can be used multiple times, different places can use the ID or class to set different styles.

HTML5 Header Label Function Introduction:

Because the header tag is HTML5 new tag element, so the old version of the browser is not supported, need to ie9+ above browser, the latest Google Chrome and other browsers to support. Of course, the domestic 360 browser, Baidu browser, browsing browser and other browsers are borrowing the system comes with IE core, so the domestic browser is actually the same as your system comes with browser IE version, so your IE browser in IE9 or above version naturally compatible with HTML5 new tag elements.

Summary of HTML5 header tags:

Topic.alibabacloud.com recommends that, in order to be compatible from IE6 to the latest version of IE, the normal Web page layout is not the time to use HTML5 new tag elements. It is recommended that you use regular div+css to layout HTML pages. Usually know HTML5 new have these tag elements, know how to use and div nature no difference. Of course you will div+css the layout will naturally HTML5 the new element tag.

Well, the above is the introduction of the HTML5 header label and the role explained, the problem can be asked below.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.