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

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>
主站蜘蛛池模板: 龙岩市| 琼结县| 三亚市| 延川县| 台湾省| 唐海县| 西宁市| 永昌县| 渝北区| 重庆市| 涟水县| 平顺县| 张掖市| 屏山县| 当阳市| 佛教| 莱芜市| 兰溪市| 米脂县| 菏泽市| 斗六市| 颍上县| 秭归县| 壶关县| 广灵县| 江山市| 遂平县| 报价| 崇明县| 原阳县| 自治县| 资溪县| 莱芜市| 福鼎市| 江城| 桃园市| 石河子市| 余姚市| 玛曲县| 伽师县| 白河县|