https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/main
HTML <main>
元素呈现了文档的 <body>
或应用的主体部分。
在文档中,<main>
元素的内容应当是独一无二的。任何同时存在于任意一系列文档中的相同、重复内容,比如侧边栏、导航栏链接、版权信息、网站 Logo,搜索框(除非搜索框为文档的主要功能),都不应当被包含在其内。
<main>
元素不能是 <article>
、<aside>
、<footer>
、<header>
或 <nav>
元素的后代元素。
示例:
<main>
<h1>Apples</h1>
<p>The apple is the pomaceous fruit of the apple tree.</p>
<article>
<h2>Granny Smith</h2>
<p>These juicy, green apples make a great filling for apple pies.</p>
</article>
</main>