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?
✗ Incorrect
The class
.table-danger applies a red background to table rows or cells.How do you apply a yellow background to a table row in Bootstrap?
✗ Incorrect
The class
.table-warning adds a yellow background color to table rows or cells.Which Bootstrap class gives a blue background to a table row?
✗ Incorrect
.table-primary applies a blue background color.Can you apply Bootstrap table color variants to individual table cells?
✗ Incorrect
You can add color variant classes directly to
<td> or <th> elements.What is the effect of adding
.table-light to a table row?✗ Incorrect
.table-light applies a light gray background to the row.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.