HTML and CSS Reference
In-Depth Information The char and charoff attributes
Even simple word processors let you line up decimal points for numbers
in a table. Until the advent of the HTML 4.0 standard, however, the lan-
guage was deficient in this feature. Now you may include the char attrib-
ute to indicate which letter in each of the table row's cells should be the
axis for that alignment. You need not include a value with char . 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 attribute 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 on each line. If a line
doesn't include the alignment character, it should be horizontally shifted
to end at the alignment position.
The char and charoff attributes are defined in HTML 4 and XHTML but
are not yet supported by any of the popular browsers. The bgcolor and background attributes
Like its relative for the <table> tag, the bgcolor attribute for the <tr> tag
sets the background color of the entire row. Its value is either an RGB
color value or a standard color name. Appendix G provides both the syn-
tax of color values and the acceptable color names.
Every cell in the row is given this background color. You can change in-
dividual cell colors by providing the bgcolor attribute for those cells.
The nonstandard background attribute with its image-file URL value
places a graphic tiled into and behind the text of the entire table row.
For example, this tag fills the table row with bricks:
<tr background="bricks.gif">
Search WWH ::

Custom Search