The Table Elements

Before delving into the more advanced uses of tables, it's instructive to look at a table used for the purpose tables are intended: to display columns of data. The next three sections present the elements you need to create a simple table for this purpose.

All table-related elements occur within the <table> element. Any table-related elements occurring outside a <table> element are considered invalid and will cause your document to be rejected.

A good habit you should get into immediately is to put the closing </table> tag into your XHTML file whenever you start a <table> element. If you don't have a closing </table> tag and you go to a browser to preview your work, the browser will reject the page because of inappropriate ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.