Intermediate
HTML & CSS
Q75 / 100
What is the difference between "<section>" and "<div>" elements semantically?
Correct! Well done.
Incorrect.
The correct answer is B) <section> represents a thematic grouping of content, typically with a heading, and conveys meaning to assistive technologies and document outlines, while <div> is a generic container with no inherent semantic meaning
B
Correct Answer
<section> represents a thematic grouping of content, typically with a heading, and conveys meaning to assistive technologies and document outlines, while <div> is a generic container with no inherent semantic meaning
Explanation
Use <section> when the content represents a distinct, thematically related block (often with its own heading); use <div> purely for styling/scripting hooks with no semantic implication.
Progress
75/100