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.
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 ...
Get The Definitive Guide to HTML5 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.