Home  >  Article  >  Web Front-end  >  What is the function of main tag

What is the function of main tag

云罗郡主
云罗郡主Original
2019-02-01 17:22:546852browse

What is the function of main tag

What is the function of the main tag?

The main tag specifies the main content of the document. The main purpose of main is to map ARIA's landmark role main to elements in HTML. This can help screen reading devices and assistive devices know where the main content of the page comes from. Where did it begin. [Recommended tutorial: HTMLTutorial]

Note: The content in the

element should be unique to the document. It should not contain content that appears repeatedly throughout the document, such as sidebars, navigation bars, copyright information, site logos, or search forms.

Note: More than one

element cannot appear in a document. The
element cannot be a descendant of
,

html main tag example




Web Browsers

Google Chrome、Firefox 以及 Internet Explorer 是目前最流行的浏览器。


The above is the detailed content of What is the function of main tag. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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