O'Reilly logo

Platinum Edition Using XHTML™, XML, and Java™ 2 by Andrew H. Watt, Mike Morgan, Jim O'Donnell, Eric Ladd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required