HTML & CSS · Junior · Question 51 of 75
When should you use <article> rather than <section>?
- ✓Correct answer: For self-contained content that makes sense on its own (a post, a comment, a product card)
- 2Whenever a block has a background color
- 3They are interchangeable;
<article>is just longer to type
Explanation
<article> could be syndicated or reused independently. <section> groups thematically related content within a page and usually has a heading. If neither fits, a plain <div> is fine.