HTML HTML Basics Structuring Your Content Semantic HTML: <header>, <footer> and <section>

Michael Tudini
Michael Tudini
1,039 Points

What's the difference between section and article?

What's the difference between section and article?

2 Answers

Rachel Lev
Rachel Lev
14,399 Points

The <section> tag defines sections in a document, such as chapters, headers, footers, or any other sections of the document. It groups together related section of content. The <article> element represents self-contained content. Examples include: a forum post, a magazine or newspaper article, or a blog entry. Anything that can make sense on its own.

what do you mean?

Article self-contained contents meaning content that is not directly related to the main.