Table in Bootstrap
A table is the representation of data's in
rows and
columns. You can use a table to differentiate between things, list product and price and many more. We have treated tables in HTML.
Click here to see how to create a table with HTML. But major difference between HTML table and Bootstrap table is the look ( appearance). Bootstrap table looks fantabulous.
Check this out
The code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>How to create a table with Bootstrap</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css">
</head>
<body>
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Age</th>
<th>Department</th>
<th>Level</th>
</tr>
</thead>
<tbody>
<tr>
<td>Angela</td>
<td>19</td>
<td>Mathematics</td>
<td>100</td>
</tr>
<tr>
<td>Nicole</td>
<td>20</td>
<td>Biochemistry</td>
<td>200</td>
</tr>
<tr>
<td>Christine</td>
<td>24</td>
<td>Microbiology</td>
<td>400</td>
</tr>
</tbody>
</table>
<script src="bootstrap/js/jquery.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
</body>
</html>
Please share
Thanks for sharing your
ReplyDeleteknowledge realted to programming