ptg16476052
LESSON 10
10 Building Tables
So far in this book, you’ve used plain vanilla Hypertext Markup Language
(HTML) to build and position the elements on your pages, and you’ve
used Cascading Style Sheets (CSS) to fine-tune their appearance. Although
you can get your point across using paragraphs and lists, some informa-
tion lends itself best to being presented in tables. In this lesson, you
learn how to use HTML to create them.
When tables were officially introduced in HTML 3.2, they were commonly
used to lay out entire pages. More recently, that role has been taken over
by CSS. With the introduction of HTML 4 and later releases, new features
were added to enable tables to better perform their designated role: the
presentation of tabular data.
In this lesson, you’ll learn all about tables, including the following:
n Defining tables in HTML
n Creating captions, rows, and heading and data cells
n Modifying cell alignment
n Creating cells that span multiple rows or columns
n Adding color to tables
n Using tables in web pages