HTML code for table......
The <table> tag defines an HTML table.
Each table row is defined with a <tr> tag. Each table header is defined with a <th> tag. Each table data/cell is defined with a <td> tag.
By default, the text in <th> elements are bold and centered.
By default, the text in <td> elements are regular and left-aligned.
<table style="width:80%">
<tr><th>name</th>
<th>age</th>
<th>blood group</th>
</tr>
<tr>
<td>saifur</td>
<td>rahman</td>
<td>30</td>
</tr>
<tr>
<td>sagar</td>
<td>shohana</td>
<td>25</td>
</tr>
</table>
Comments
Post a Comment