O'Reilly logo

The Definitive Guide to HTML5 by Adam Freeman

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

C H A P T E R  11

Table Elements

In this chapter, I will show you the HTML elements you can use to create tables. The main use for tables is to display two-dimensional data in a grid, but in earlier versions of HTML, it became common to use tables to control the layout of content in the page. In HTML5, this is no longer permitted, and the new CSS table feature (described in Chapter 21) must be used instead. Table 11-1 provides the summary for this chapter.

Image

Creating a Basic Table

There are three elements that every table must contain: table, tr, and td. There are other elements—and I'll explain them later in this chapter—but these are the three ...

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