HTML and CSS Reference
In-Depth Information
All the popular browsers support bgcolor and all support the background
extension, except Internet Explorer.
10.2.3.4. The bordercolor, bordercolorlight, and bordercolordark
attributes
Like their nonstandard brethren for the <table> tag, Internet Explorer
only lets you use these attributes to set the color of the borders within
the current row.
Their values override any values set by the corresponding attributes in
the containing <table> tag. See the corresponding descriptions of these
extensions in section 10.2.1.5 , earlier in this chapter, for details. Color
values can be either RGB color values or standard color names, both of
which we describe fully in Appendix G .
10.2.3.5. The nowrap attribute
Browsers treat each table cell as though it were a browser window unto
itself, flowing contents inside the cell as they would common body con-
tents (although subject to special table cell-alignment properties). Ac-
cordingly, the browsers automatically wrap text lines to fill the allot-
ted table cell space. The nowrap attribute, when included in a table row,
stops that normal word wrapping in all cells in that row. With nowrap ,
the browser assembles the contents of the cell onto a single line, unless
you insert a <br> or <p> tag, which forces a break so that the contents
continue on a new line inside the table cell.
10.2.4. The <th> and <td> Tags
The <th> and <td> tags go inside the <tr> tags of a table to create the
header and data cells, respectively, and to define the cell contents with-
in the rows. The tags operate similarly; the only real differences are
that the browsers render header textmeant to title or otherwise describe
table datain boldface font style and that the default alignment of their
 
Search WWH ::




Custom Search