18. Tables

We’re all familiar with tabular data in our daily lives. It takes many forms, such as financial data, event calendars, transit schedules, and TV schedules. In most cases, this information is presented in one or more rows, with headers above the columns or alongside the rows.

The table element—along with its child elements—is described in this chapter. I’ll focus on basic table structuring and styling. HTML tables can get quite complex, though you’ll likely have few occasions to implement them unless you have a data-rich site. For advanced examples, see the following URLs:

“Bring On the Tables” by Roger Johansson (www.456bereastreet.com/archive/200410/bring_on_the_tables/ ...

Get HTML and CSS: Visual QuickStart Guide, Eighth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.