Choosing Which Borders to Display
When you use the border attribute (see page 230), a border appears between each cell and also around the table itself. (X)HTML lets you choose which external sides of the table should have a border as well as which internal borders should be displayed.
Figure 16.58. Add the frame attribute within the table tag. I’ve added a thick border so that it’s easier to see the effect. If you leave border out and the frame attribute is not void, you’ll get a 1 pixel border by default.
To choose which external sides should have a border:
In the table tag, type frame="location", where location is one of the values listed ...
Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide 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.