HTML TABLES
- Tables are defined with the <table> tag.
- A table is divided into rows with the <tr> tag.
- A row is divided into data cells with the <td> tag.
- A row can also be divided into headings with the <th> tag.
- The <td> elements can contain all sorts of HTML elements like text, images, lists, other tables, etc.
Let we want to write a HTML code for given table
AB | CD | 15 |
PQ | RS | 10 |
So HTML Code for this table is
<table border="1" style="width: 300px;">
<tbody>
<tr>
<td>AB</td><td>CD</td>
<td>15</td></tr>
<tr>
<td>PQ</td><td>RS</td><td>10</td></tr>
</tbody>
</table>
0 comments:
Post a Comment