Chapter 7-HTML Tables
Chapter 7-HTML Tables
HTML TABLES
At the end of this module, the students will be able to
understand:
When writing code for a table in a text editor, you should start
each row and cell on a new line and indent table cells inside
table rows.
<table>
<!- - First Row - ->
<tr>
<td>row1, column 1</td>
<td>row1, column 2</td>
</tr>
<!- - Second Row - ->
<tr>
<td>row2, column 1</td>
<td>row2, column 2</td>
</tr>
</table>
The <th> element in place of the <td>element for the cells
that contain a heading.
colspan="2"
The rowspan Attribute
rowspan="2"
<table>
<caption>Student Details</caption>
<tr>
NESTED TABLE
A table inside a table cell.
Reference
Proquest