HTML-TABLES
Tables are the easiest way to represent some data to the user.
In html tables are defined with <table> tag.
Table data are added row wise.
<tr> - Table Rows
<th> - Table Header
<td> - Table Data
Syntax:
<table>
<tr>
<th>Header name 1</th>
<th>Header name 2</th>
</tr>
<tr>
<td>row1, col1</td>
<td>row1, col2</td>
</tr>
<tr>
<td>row2, col1</td>
<td>row2, col2</td>
</tr>
</table>
Table Properties:
1. Cell padding:
Cell padding sets the amount of space between the contents of the cell and the cell wall.
2. Cell spacing:
Cell spacing controls the space between table cells and data.
3. Cell spanning :
Cell spanning means joining two or more cells to expand the cell size.