Page 60 - DCAP408_WEB_PROGRAMMING
P. 60
Web Programming
Notes </tr>
</table>
Output
Heading Another Heading
row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2
Empty Cells in a Table
Table cells with no content are not displayed very well in most browsers.
<table border=”1">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td></td>
</tr>
</table>
Output
row 1, cell 1 row 1, cell 2
row 2, cell 1
Table Tags
Table 2.1 is showing the table tags:
Table 2.1
Tag Description
<table> Defines a table
<th> Defines a table header
<tr> Defines a table row
<td> Defines a table cell
<caption> Defines a table caption
<colgroup> Defines groups of table columns
<col> Defines the attribute values for one or more columns in a table
<thead> Defines a table head
<tbody> Defines a table body
<tfoot> Defines a table footer
54 LOVELY PROFESSIONAL UNIVERSITY