0
0
Bootsrapmarkup~5 mins

Striped and hover tables in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
A.table-hover
B.table-responsive
C.table-bordered
D.table-striped
What does the .table-hover class do in a Bootstrap table?
AHighlights a row on mouse hover
BAdds borders around the table
CMakes the table responsive
DChanges font size
How do you apply both striped rows and hover effect to a Bootstrap table?
AAdd .table-hover only
BAdd both .table-striped and .table-hover classes
CAdd .table-striped only
DAdd .table-bordered
Where should you add the .table-striped and .table-hover classes?
AOn each <tr> element
BOn the <td> elements
COn the <table> element
DOn the <tbody> element