For example :
<table border="5">
</table>
2)table row <tr> tag is used to define information in the row.
3)<th> is an attribute of table tag which is used to provide heading for table.
4)<td> is an attribute of table tag which provides table definition.
There are some more attributes used in table tag like :
Cell spacing,Cell padding,Align,Width,Height
- Tables are the best way of structuring the web page.
- The contents of the celll can be align either vertically or horizontally within the row.
- To merge 2 or more columns, we use the attribute <colsspan>
- To merge 2 or more rows, we use the attribute <rowspan>
- The <colspan> and <rowspan> attributes can be nested.
For Example :
<table border="1">
<tr>
<td> row1,cell1 </td>
<td> row1,cell2 </td>
</tr>
<td> row2,cell1</td>
<td> row2,cell2</td>
</tr>
</table>