1<html>
2 <head>
3 <title>Working with HTML Tables</title>
4 </head>
5 <body>
6 <table> <!-- create an table object -->
7 <tr> <!-- "tr" represents a row -->
8 <th>Name</th> <!-- use "th" to indicate header row -->
9 <th>Date of Birth</th>
10 <th>Weight</th>
11 </tr>
12 <tr> <!-- once again use tr for another row -->
13 <td>Mary</td> <!-- use "td" henceforth for normal rows -->
14 <td>12/13/1994</td>
15 <td>130</td>
16 </tr>
17 </table>
18 </body>
19</html>
1tr , th , td {
2 border: 1px solid black;
3 padding: 5%;
4 text-align: center;
5}
1table, td, th {
2 border: 1px solid black;
3}
4
5table {
6 border-collapse: collapse;
7}