18. Tables

In This Chapter

Structuring Tables

Spanning Columns and Rows

We’re all familiar with tabular data in our daily lives. It takes many forms, such as financial or survey data, event calendars, bus schedules, or TV schedules. In most cases, this information is presented in columns, or row headers, along with the data itself.

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. The links below show code examples for complex table structures, and emphasize how to make tables accessible:

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

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh 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.