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