How to create tables with Border in All sides.
Bootstrap allows you to add border to the table cells. This is simply done using the
.table-bordered method.
Check this out.
The code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>How to create table with borders on all sides</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 table-bordered">
<thead>
<tr>
<th>Name</th>
<th>Grades</th>
<th>Gender</th>
<th>Level</th>
</tr>
</thead>
<tbody>
<tr>
<td>Olive</td>
<td>Pass</td>
<td>Female</td>
<td>200</td>
</tr>
<tr>
<td>Ariana</td>
<td>Pass</td>
<td>Female</td>
<td>300</td>
</tr>
<tr>
<td>Jonas</td>
<td>Distinction</td>
<td>Male</td>
<td>100</td>
</tr>
</tbody>
</table>
<script src="bootstrap/js/jquery.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
</body>
<html>
Please share
Comments
Post a Comment