Professional Documents
Culture Documents
Table Tags
Table Tags
table tags
HTML Tables:
HTML tables allow web developers to arrange the data into rows and
columns.
Table Tags:
1) <table> .... </table> => It is used to define a table.
2) <tr> .... </tr> => It is used to define a row in a table.
3) <th> .... </th> => It is used to define haeader cell in a table.
4) <td> .... </td> => It is used to define data cell in a table.
5) <caption> .... </caption> => It is used to define caption of the table.
6) <colgroup> .... </colgroup> => It is used to specify one or more
columns as a group for formatting.
7) <col> => It is used to specify column property for each column.
8) <thead> ... </thead> => It is used to group the header content in a
table.
9) <tbody> ... </tbody> => It is used to group the body content in a
table.
10) <tfoot> ... </tfoot> => It is used to group the footer content in a
table.
colspan example:
<html>
<body>
rowspan example:
<html>
<body>
<table border=20 width=200>
<tr><td rowspan=2>1</td><td>2</td></tr>
<tr><td>3</td></tr>
</table>
</table>
</body>
</html>
<tr><td>3</td></tr>
<tr><td>4</td><td>5</td><td>6</td></tr>
</table>
</table>
</body>
</html>
By