Changing the Border

Hardly anyone uses table borders in layout tables, but just about everyone uses table borders in data tables. The table's border attribute controls the thickness of the border, and the bordercolor attribute determines the color:

<table border="5" bordercolor="#000000">

GEEKSPEAK

Rules are the interior borders of a table. They retain their standard thickness, no matter the value in the border attribute, but they appear in the table border's color.

Figure 56.6 shows a table with these properties. The border around the outside of the table appears at a thickness of 5 pixels. The interior borders or rules retain their normal thickness but borrow the table border's color.

Figure 56.6. This table has a five-pixel, black (#000000) ...

Get Web Design Garage 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.