Advanced
HTML & CSS
Q96 / 100
What is the difference between "inline", "inline-block", and "block" display values regarding layout behavior?
Correct! Well done.
Incorrect.
The correct answer is B) "block" elements take the full available width and start on a new line; "inline" elements flow within text and ignore width/height/vertical margins; "inline-block" flows like inline but respects width, height, and margins like a block
B
Correct Answer
"block" elements take the full available width and start on a new line; "inline" elements flow within text and ignore width/height/vertical margins; "inline-block" flows like inline but respects width, height, and margins like a block
Explanation
inline-block combines behaviors: it sits inline with surrounding content (no forced line break) but, unlike pure inline elements, respects box model properties like width, height, and vertical margin/padding.
Progress
96/100