Web Design

(Nancy Kaufman) #1

162


2 Within the body, type


.
3 Press.
4 Type .
5 Press.
6 Type .
Note: The code shown has been
indented using. This is not
required, but highly recommended.
1 In your editor, open a
new HTML document
that contains the basic
HTML tags.

Add Data Tables


T


ables allow you to present large blocks of data to your users in an organized fashion, such as
phone lists, product specification grids, and calendars. HTML uses a set of three tags to define

basic tables. The

.
7 Type the contents of the first
cell of the table.
8 Type
tag defines the table itself. Each row of the table is defined by the table


row tag, tr. Then each cell is created by use of the td element, which is short for table data. Each


of these tags wraps around the other, so a td can appear only between the opening and closing tr,


which must in turn appear within a

tag.


Add Data Tables


2


1


7


4


6 8