A Basic TableA table in HTML consists of rows, and each row consists of rectangular boxes or cells. An HTML table definition is contained between the <table> and </table> tags. You define each row in the table separately using the <tr> and </tr> element (table row), and then each cell within the row using the <td> and </td> element (table data).This code: <table border="1" cellspacing="0" cellpadding="0" frame="border" rules="all"> <tr> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> </table> If your table needs headings the first row should look like this:
You can also add a caption:
You can merge cells and columns:
|
||||||||||||||||||||||||||||||||||||||
| WWW | URLs | XHTML | CSS | Tables | Images | Links | XHTML Basics | JavaScript |