table attribute html code example
Example 1: 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 2: table css
tr , th , td {
border: 1px solid black;
padding: 5%;
text-align: center;
}
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>
Example 4: html tables
<table></table>
<td></td>
<tr></tr>
<th></th>
<thead></thead><tbody></tbody><tfoot></tfoot>
<tr rowspan="2"></tr>
<tr colspan="2"></tr>