Beginner
HTML & CSS
Q39 / 100
What is the difference between <div> and <span>?
Correct! Well done.
Incorrect.
The correct answer is B) <div> is a block-level generic container, while <span> is an inline generic container
B
Correct Answer
<div> is a block-level generic container, while <span> is an inline generic container
Explanation
<div> is block-level (takes up the full width available, starting on a new line), while <span> is inline (flows within text without forcing a line break).
Progress
39/100