Tables are an arrangement of data in the form of rows and columns. It is besically used in communication, data analysis, and research to create database, product listings, customer's details, financial reports and so on. A table can be defined using below tag-
Tag | Description |
---|---|
<table> | Table is defined with the <table> tag. |
<tr> | Each row in a table is defined with the <tr> tag. |
<th> | Table header is defined with the <th> tag. |
<td> | Each cell in a table is defined with the <td> tag. |
<table>
<tr><th>Table Heading 1</th><th>Table Heading 2</th></tr>
<tr><td>Data 1</td><td>Data 2</td></tr>
<tr><td>Data 11</td><td>Data 22</td></tr>
</table>