table data in html and its attribute 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 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>