Complete the code to add a Bootstrap class that makes the table have basic styling.
<table class="[1]"> <thead> <tr> <th>Name</th> <th>Age</th> </tr> </thead> <tbody> <tr> <td>Alice</td> <td>30</td> </tr> </tbody> </table>
The table class adds basic Bootstrap styling to the table, such as borders and padding.
Complete the code to add a Bootstrap class that makes the table rows highlight on hover.
<table class="table [1]"> <thead> <tr> <th>Product</th> <th>Price</th> </tr> </thead> <tbody> <tr> <td>Book</td> <td>$10</td> </tr> </tbody> </table>
table-striped which adds stripes but no hover effect.table class.The table-hover class adds a highlight effect on table rows when you move the mouse over them.
Fix the error by completing the class name to add borders around all table cells.
<table class="table [1]"> <thead> <tr> <th>City</th> <th>Country</th> </tr> </thead> <tbody> <tr> <td>Paris</td> <td>France</td> </tr> </tbody> </table>
table-striped which only adds stripes.table-hover which adds hover effect but no borders.The table-bordered class adds borders around all cells in the table.
Fill both blanks to create a small, striped Bootstrap table.
<table class="table [1] [2]"> <thead> <tr> <th>Item</th> <th>Quantity</th> </tr> </thead> <tbody> <tr> <td>Pen</td> <td>20</td> </tr> </tbody> </table>
table-hover with table-striped.table class.The table-sm class makes the table smaller with less padding. The table-striped class adds alternating row colors.
Fill all three blanks to create a responsive, bordered, and hoverable Bootstrap table.
<div class="[1]"> <table class="table [2] [3]"> <thead> <tr> <th>Country</th> <th>Capital</th> </tr> </thead> <tbody> <tr> <td>Japan</td> <td>Tokyo</td> </tr> </tbody> </table> </div>
table-responsive on the table instead of the container div.table-striped with table-hover.The table-responsive class on the container makes the table scroll horizontally on small screens. The table-bordered adds borders, and table-hover adds row highlight on hover.