Home > Web Front-end > H5 Tutorial > body text

Detailed explanation of examples of main element in h5

零下一度
Release: 2017-05-31 15:41:42
Original
3477 people have browsed it

As early as 2013, the

element was officially added to the W3C HTML specification. Up to now, the definition of this element has been very complete, so now it is time to take a deeper look at when it is appropriate to use

 W3C specification

 The main purpose of

is to map ARIA's landmark function main to elements in HTML. This helps screen readers and assistive devices know where the main content of the page begins. The W3C specification describes
as:

The main content of a document or application. The main content area consists of content that directly relates to or extends to the central topic of the document or the core functionality of the app.

Since the

element was included in the HTML specification, the element has reverted to its HTML4 definition.

The body element represents the content of the document.

Details

It is noteworthy to use the

element One thing is, it can only be used once per page. Why is it stipulated that a page can only be used once? Although I'm not interested in the specific details, some of the points seem to make sense.

According to the specification, if you try to use multiple

tags in a document, the W3C validator will throw an error.

Another requirement for the

element is that it cannot be used as a child element node of
,
,
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!