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
Note: More than one
html main tag example
<!DOCTYPE html> <html> <body> <main> <h1>Web Browsers</h1> <p>Google Chrome、Firefox 以及 Internet Explorer 是目前最流行的浏览器。</p> </main> </body> </html>
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!