官术网_书友最值得收藏!

The <article> element

As per the MDN definition:

The HTML Article Element (<article>) represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable, e.g., in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, or any other independent item of content. Each <article> should be identified, typically by including a heading (h1-h6 element) as a child of the <article> element.

Here are a few important points to remember about the <article> element:

  • Any self-contained content should be placed inside the <article> element.

    Self-contained means that if we take the <article> element and everything inside it out into another context, all the content is self-explanatory and does not need anything else around it to be understood.

  • An <article> can be nested inside another <article> element.
  • There can be more than one <article> element in a single page.

Consider the following example:

<body>
    <main class="main-container" role="main">
       <article class="article-container flex-container">
           Content goes here
       </article>
    </main>
</body>
主站蜘蛛池模板: 南召县| 布尔津县| 株洲县| 屏边| 哈尔滨市| 平远县| 博罗县| 象州县| 会同县| 长泰县| 磐石市| 张家港市| 庆元县| 遵化市| 呼和浩特市| 南安市| 抚宁县| 宣武区| 洪雅县| 舟山市| 方山县| 玉屏| 渑池县| 页游| 蒙山县| 怀安县| 灵川县| 元江| 兴仁县| 庆元县| 比如县| 寿光市| 大邑县| 同心县| 辽阳县| 石棉县| 永德县| 娱乐| 勃利县| 蓬莱市| 梁山县|