HTML Table Sizes
HTML tables can have different sizes for each column, row or the entire table.
Use the style attribute with the width or height properties to specify the size of a table, row or column.
To set the width of a table, add the style attribute to the <table> element:
Example:
Set the width of the table to 100%:
<tr>
<th>FirstName</th>
<th>LastName</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
Note: Using a percentage as the size unit for a width means how wide will this element be compared to its parent element, which in this case is the <body>