The <article>
element in HTML represents self-contained content that is distributable independently from the rest of the site. Examples of content that you can include within the <article>
element include forum posts, blog entries, user-submitted comments, or any other independent item of content.
There is no limit to the number of <article>
elements a single document can contain. Similar to most HTML elements, the <article>
element can be styled using CSS.
The <article>
element includes only global attributes and supports all the usual events supported by HTML elements.
Generally, an <article>
element should be identified by a heading. You can do this by including one of the heading tags (<h1>
-<h6>
) as a child of the <article>
element, as shown below:
<article>
<h1>This is the first article.
</article>
<article>
<h2>This is the second article.
</article>
The code below shows how the <article>
element works in HTML:
The code above utilizes <article>
elements, where each element represents a particular ceramic. As shown in the example above, each <article>
element contains content that is exclusive to itself and does not depend on any other part of the document.
Since the content contained within each <article>
element is independent of the rest of the document, each <article>
element can be freely distributed. This distribution may involve the content of the <article>
elements cited on a different site or appearing in search engine queries.
Note: For further details regarding the
<article>
element, you can check the documentation.
Free Resources