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

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>
主站蜘蛛池模板: 吉首市| 五大连池市| 和平区| 临城县| 尼木县| 搜索| 台南县| 九寨沟县| 伊川县| 双城市| 肃宁县| 松溪县| 凯里市| 古浪县| 淅川县| 蒙自县| 高雄市| 二连浩特市| 台江县| 武宁县| 慈溪市| 连江县| 噶尔县| 内江市| 温州市| 花莲县| 钦州市| 鲜城| 田东县| 武功县| 郸城县| 集贤县| 定襄县| 民县| 绥宁县| 商城县| 揭西县| 图木舒克市| 昭觉县| 剑川县| 张掖市|