Recall & Review
beginner
What does the Bootstrap class
.text-wrap do?The <code>.text-wrap</code> class allows text to wrap onto the next line instead of overflowing outside its container.Click to reveal answer
beginner
How does the Bootstrap class
.text-nowrap affect text?The <code>.text-nowrap</code> class prevents text from wrapping. All text stays on one line and may overflow its container if too long.Click to reveal answer
beginner
What is the purpose of the Bootstrap class
.text-truncate?The <code>.text-truncate</code> class shortens text that is too long to fit in its container by adding an ellipsis (...) at the end.Click to reveal answer
intermediate
Which CSS property does Bootstrap's
.text-truncate rely on to show ellipsis?It uses the CSS property
text-overflow: ellipsis; combined with overflow: hidden; and white-space: nowrap;.Click to reveal answer
beginner
Why is controlling text overflow important in web design?
Controlling text overflow keeps layouts neat and readable. It prevents text from spilling outside containers, which can break design and confuse users.
Click to reveal answer
Which Bootstrap class allows text to wrap onto multiple lines?
✗ Incorrect
The
.text-wrap class enables text to wrap onto the next line.What happens when you use
.text-nowrap on a long text?✗ Incorrect
.text-nowrap keeps text on one line, which can cause overflow.Which class would you use to shorten overflowing text with an ellipsis?
✗ Incorrect
.text-truncate shortens text and adds an ellipsis.What CSS property is essential for showing ellipsis in truncated text?
✗ Incorrect
text-overflow: ellipsis; shows the three dots for truncated text.Why should you avoid letting text overflow its container?
✗ Incorrect
Preventing overflow keeps the page neat and easy to read.
Explain how Bootstrap helps manage text wrapping and overflow in layouts.
Think about how text behaves when it is too long for its container.
You got /4 concepts.
Describe the CSS properties behind Bootstrap's text truncation feature.
These properties work together to hide overflow and show dots.
You got /3 concepts.