how to add a border in a table html code example
Example 1: table border css
table, th, td {
border: 1px solid black;
}
Example 2: html create a table
<html>
<head>
<title>Working with HTML Tables</title>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Date of Birth</th>
<th>Weight</th>
</tr>
<tr>
<td>Mary</td>
<td>12/13/1994</td>
<td>130</td>
</tr>
</table>
</body>
</html>
Example 3: table html tages
<table>
<tr>
<th>This is the heading</th>
<th>Next heading to the right</th>
</tr>
<tr>
<td>This is where the table data goes</td>
<td>This is the second columns data</td>
</tr>
</table>