Documentos de Académico
Documentos de Profesional
Documentos de Cultura
<table> TAG
<table></table> is used to represent start end of a table.
There are specific tags that need to be used inside this pair to yield desired table structure.
It has a number of attributes which will be applicable to whole of the table. Attributes which
are specific to table are discussed here. Standard attributes and event handlers are not
mentioned.
<tr> tag.
<tr></tr> defines a table row. It will contain one or more pairs of either <th></th> or
<td></td> tags.
Attributes
<th> Tag
<th></th> tag pair is used to specify a cell header. For each cell a a tag pair is required.
The content inside it is bold and centered as per default styling. It comes inside a <tr></tr>
tag pair.
<td> Tag
<td></td> tag pair is also used at the cell level. It is used for specifying table data. Its
default styling is regular and left-aligned.
<caption> tag
<caption></caption> pair.
<thead> Tag
<thead></thead> pair
It is used to group the header content of a table.
<tbody> Tag
<tbody></tbody> pair
It is used to group the body content of a table.
<tfooter> Tag
<tfooter></tfooter>
It is used to group the footer content of a table.
Each of these tags should be used in conjunction with other two tags.
The <col> tag defines attribute values for one or more columns in a table.
<colgroup> Tag
Example
<table width="200" border="1">
<caption>What about this caption</caption>
<tr><td colspan="2">The</td>
<td rowspan="2"> </td> </tr>
<tr><td rowspan="2"> </td>
<td align="center">Zig Zag</td> </tr>
<tr><td colspan="2" align="right">Table</td> </tr>
</table>
Reference:
1. W3schools.com
2. HTML, DHTML, Java Script, Perl, CGI - Evan Bayross, BPB