0
0
Bootsrapmarkup~5 mins

Table color variants in Bootsrap - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of table color variants in Bootstrap?
Table color variants help visually distinguish rows or cells by applying different background colors, improving readability and user experience.
Click to reveal answer
beginner
Which Bootstrap class adds a light gray background to a table row?
The class .table-secondary adds a light gray background color to a table row or cell.
Click to reveal answer
beginner
How do you apply a green background to a table row using Bootstrap?
Add the class .table-success to the <tr> element to give it a green background.
Click to reveal answer
intermediate
Name three Bootstrap table color variant classes for different semantic meanings.
Three classes are: .table-primary (blue), .table-warning (yellow), and .table-danger (red).
Click to reveal answer
intermediate
Can Bootstrap table color variants be applied to individual cells? How?
Yes, by adding the color variant class (like .table-info) directly to a <td> or <th> element.
Click to reveal answer
Which class would you use to make a table row have a red background in Bootstrap?
A.table-success
B.table-danger
C.table-info
D.table-primary
How do you apply a yellow background to a table row in Bootstrap?
A.table-light
B.table-secondary
C.table-warning
D.table-dark
Which Bootstrap class gives a blue background to a table row?
A.table-primary
B.table-info
C.table-danger
D.table-success
Can you apply Bootstrap table color variants to individual table cells?
AYes, by adding the variant class to <td> or <th>
BNo, only rows can have color variants
COnly header cells can have color variants
DOnly the entire table can have one color variant
What is the effect of adding .table-light to a table row?
AMakes the row background green
BMakes the row background dark
CMakes the row background yellow
DMakes the row background light gray
Explain how to use Bootstrap table color variants to improve table readability.
Think about how colors can highlight or separate rows.
You got /4 concepts.
    List and describe at least four Bootstrap table color variant classes and their typical color meanings.
    Remember the semantic color meanings used in Bootstrap.
    You got /4 concepts.