HTML and CSS Reference
In-Depth Information
10.2.4.9. The bordercolor, bordercolorlight, and bordercolordark
attributes
Internet Explorer lets you alter the colors that make up an individual
cell's borderif table borders are turned on with the
border
attribute, of
course. See the respective attributes' descriptions under the
<table>
tag
in
section 10.2.1.5
,
earlier in this chapter, for details.
The values for these three attributes override any values set for the con-
taining
<table>
or
<tr>
tag. Their values can be either RGB color values
or standard color names, both of which we describe fully in
Appendix G
.
10.2.4.10. The char and charoff attributes
Just as for the
<tr>
tag, you may use the
char
attribute with
<th>
or
<td>
to indicate which letter in the table cell should be the axis for alignment,
such as for decimal numbers. You need not include a value with
char
in
HTML. If you don't, the default character is language based: it's a period
in English, for example, and a comma in French. Include the
char
at-
tribute and a single letter as its value to specify a different alignment
character.
Use the
charoff
attribute and an integer value to specify the offset to the
first occurrence of the alignment character in the cell. If a cell doesn't
include the alignment character, it should be shifted horizontally to end
at the alignment position.
The
char
and
charoff
attributes are standard in HTML 4 and XHTML but
are not yet supported by any of the popular browsers.
10.2.4.11. The headers and scope attributes
The
headers
attribute associates header cells with a data cell in the table.
The value of this attribute is a quote-enclosed list of names that have
been defined for various header cells using the
id
attribute. The
headers