Chapter 5. USING TABLES

Add a Table to Your Page

Tables allow you to present large blocks of data to your users in an organized fashion. Phone lists, product specification grids, and calendars are just a few of the possible uses for tables on a Web page.

Tables are arranged in rows and columns, similar to the layout in a spreadsheet application like Microsoft Excel. In XHTML, you use a minimum of three elements to create a table and its parts. The table element defines the table itself. Then, each row of the table is defined by the table row element, tr, which is short for table row. Finally, each individual cell is created by use of the td element, which is short for table data. Each of these elements' tags wraps around the other, so a td can only ...

Get HTML, XHTML, and CSS: Your visual blueprint™ for designing effective Web pages 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.