Web Design

(Nancy Kaufman) #1

167


CHAPTER

Adding Tables and Lists 7


Why is it necessary to delete additional cells
from the row?
You need to be sure that your HTML tables always
follow a grid. If a table had a total of four columns,
and one cell in a row spans three columns, then that
row should contain only one additional cell, because
the other cell represents all three remaining cells.

How do I use rowspan?
The rowspan attribute works in essentially the
same way as colspan. However, because you are
having a cell that stretches vertically across multiple
rows, you need to delete one cell from each affected
row to maintain the overall grid.

● When the page is viewed
in a browser, the table cell
stretches across the specified
number of columns.

7 Press.


8 Type .


9 Add additional rows as
needed to complete the
table.


8


9


TIPS

Free download pdf