Intermediate
HTML & CSS
Q66 / 100
What does "white-space: nowrap" do to text content?
Correct! Well done.
Incorrect.
The correct answer is B) Prevents the text from wrapping onto multiple lines, keeping it on a single line even if it overflows its container
B
Correct Answer
Prevents the text from wrapping onto multiple lines, keeping it on a single line even if it overflows its container
Explanation
white-space: nowrap collapses whitespace as normal but suppresses line breaks, forcing text to remain on one line (often combined with overflow/text-overflow for truncation).
Progress
66/100