Tables are defined with the <table> tag.
Tables are divided into table rows with the <tr> tag.
Table rows are divided into table data with the <td> tag.
A table row can also be divided into table headings with the <th> tag.
A border can be added using the border attribute:
Tables are divided into table rows with the <tr> tag.
Table rows are divided into table data with the <td> tag.
A table row can also be divided into table headings with the <th> tag.
<table style="width:100%">
<tr>
<td>First Name</td>
<td>Last Name</td>
<td>Age</td>
</tr>
<tr>
<td>First Name</td>
<td>Last Name</td>
<td>Age</td>
</tr>
</table>
<tr>
<td>First Name</td>
<td>Last Name</td>
<td>Age</td>
</tr>
<tr>
<td>First Name</td>
<td>Last Name</td>
<td>Age</td>
</tr>
</table>
An HTML Table with a Border Attribute
If you do not specify a border for the table, it will be displayed without borders.A border can be added using the border attribute:
<table style="width:100%" border="1">
<tr>
<td>First Name</td>
<td>Last Name</td>
<td>Age</td>
</tr>
<tr>
<td>First Name</td>
<td>Last Name</td>
<td>Age</td>
</tr>
</table>
<tr>
<td>First Name</td>
<td>Last Name</td>
<td>Age</td>
</tr>
<tr>
<td>First Name</td>
<td>Last Name</td>
<td>Age</td>
</tr>
</table>
No comments:
Post a Comment