Recall & Review
beginner
What does the <code>.table-striped</code> class do in a Bootstrap table?It adds alternating background colors to the table rows, making it easier to read across rows.
Click to reveal answer
beginner
What effect does the <code>.table-hover</code> class add to a Bootstrap table?It highlights a table row with a background color when you move your mouse pointer over it.
Click to reveal answer
beginner
How do you combine striped rows and hover effect in a Bootstrap table?
Add both
.table-striped and .table-hover classes to the <table> element.Click to reveal answer
beginner
Why is using striped and hover tables helpful for users?
Striped rows help users follow data across the table easily, and hover effect shows which row is currently focused, improving readability and navigation.
Click to reveal answer
beginner
Which HTML element should have the Bootstrap classes
.table-striped and .table-hover applied?The
<table> element itself should have these classes to style all its rows properly.Click to reveal answer
Which Bootstrap class adds alternating background colors to table rows?
✗ Incorrect
The .table-striped class adds alternating background colors to rows.
What does the .table-hover class do in a Bootstrap table?
✗ Incorrect
The .table-hover class highlights a row when you hover the mouse over it.
How do you apply both striped rows and hover effect to a Bootstrap table?
✗ Incorrect
You add both .table-striped and .table-hover classes to get both effects.
Where should you add the .table-striped and .table-hover classes?
✗ Incorrect
These classes are added to the element to style all rows.