Web Design

(Nancy Kaufman) #1

170


Add Table Sections ................................................


4 On the next line, type


.

5 Type .


6 Type ,
replacing? with a value
equal to the number of
columns in the table.


7 Add data for the footer.


1 In your editor, open a Web
page that contains a table.


2 Below the table element’s
opening tag, type .


3 Immediately following the
final in the header,
type .


Add Table Sections


M


ost data tables are likely to be made up of two or three sections: a header at the top, a footer at
the bottom, and the main body in between. HTML provides tags to denote these three sections:

, , and . These tags wrap around the rows that make up each section

of the table. Each section can contain one or more rows, although the header and footer each rarely


contain more than one. The three table section elements do not alter the default appearance of the


table in the browser.


4


6 7


5


1


2


3

Free download pdf