<article>...</article>

HTML4 HTML5

Represents a self-contained, independent composition in a document that makes sense on its own (e.g., blog post, news article, forum post, user comment, or product card).

Both opening and closing tags are required.

Attributes: Only global attributes are used (e.g., class, id, style).

Example

Code:

<article style="background-color: #f8f9fa; border: 1px solid #ddd; padding: 12px; border-radius: 4px;"> <h3 style="margin-top: 0; color: #222;">What's new in HTML5</h3> <p style="margin-bottom: 0; font-size: 14px; color: #555;">Semantic tags allow creating a clearer website structure...</p> </article>

The browser will interpret this code as follows:

What's new in HTML5

Semantic tags allow creating a clearer website structure...