HTML

HTML Projects

HTML Project

adplus-dvertising
TABLES TAG
Previous Home Next

The <tables> tag: tables are defined with <tables> tag there are some sub tags under table tag <tr> table row tag as tables are divided into rows and columns. each raw is divided into data cells.data cells tag is <td> which holds the content of data cells

<td> tag contains links,images,lists, forms and other tables <th> tag information on table header define with <th> tag

<table border="1">
<tr>
<th> Header 1</th>
<th> Header 2</th>
</tr>
<tr>
<td> row 1, cell 1</td>
<td> row 1, cell 2</td>
</tr>
<tr>
<td> row 2, cell 1</td>
<td> row 2, cell 2</td>
</tr>
</table>

tables with caption

<html>
<body>
<table border="2"
<caption> monthly savings</caption>
<tr>
<th>month</th>
<th>savings</th>
<th> expenditure</th>
<th> earning</th>
</tr>
<tr>
<td> january</td>
<td>2000</td>
<td>1800</td>
<td>20000</td>
</tr>
<tr>
<td> february</td>
<td>1500</td>
<td>18500</td>
<td>20000</td>
</tr>
</table>
</body>
</html>

Other Than The Above Tags Of Table Tag Few More Tags Are Avaliable In HTML

<colgroup> defines group of columns in a table , <col/> define attribute values for one or more columns in a table

Previous Home Next