HTML and CSS Reference
In-Depth Information
onfocus, onfocusin, onfocusout, onhelp, onkeydown, onkeypress, onkeyup,
onlosecapture, onmousedown, onmouseenter, onmouseleave, onmousemove,
onmouseout, onmouseover, onmouseup, onmousewheel, onmove, onmoveend,
onmovestart, onpaste, onpropertychange, onreadystatechange, onresize,
onresizeend, onresizestart, onselectstart, ontimeerror
Element-Specific Attributes
abbr
The value of this attribute is an abbreviated name for a header cell. This might be
useful when attempting to display large tables on small screens. User agents rarely
implement this feature.
align
This attribute is used to align the contents of the cells. Supported values are
center
,
justify
,
left
, and
right
.
axis
This attribute is used to provide a name for a group of related headers.
background
This nonstandard attribute, which is supported by major browsers, specifies
the URL of a background image for the table cell. The image is tiled if it is smaller than the
cell's dimensions.
bgcolor
This attribute specifies a background color for a table cell. Its value can be either a
named color, such as
red
, or a color specified in the hexadecimal
#RRGGBB
format, such as
#FF0000
. Note that some older versions of Netscape Navigator may not render an empty
cell with a colored background unless some content serving as placeholder, such as a
nonbreaking space or transparent pixel-gif, is inserted in the cell.
bordercolor
This attribute, supported by Internet Explorer and Netscape, is used to set the
border color for a table cell. The attribute should be used only with a positive value for the
border
attribute. The value of the attribute can be either a named color, such as
green
, or a
color specified in the hexadecimal
#RRGGBB
format, such as
#00FF00
.
bordercolordark
This Internet Explorer-specific attribute specifies the darker of two border
colors used to create a three-dimensional effect for a cell's borders. It must be used with the
border
attribute set to a positive value. The attribute value can be either a named color,
such as
blue
, or a color specified in the hexadecimal
#RRGGBB
format, such as
#0000FF
.
bordercolorlight
This Internet Explorer-specific attribute specifies the lighter of two border
colors used to create a three-dimensional effect for a cell's borders. It must be used with the
border
attribute set to a positive value. The attribute value can be either a named color,
such as
red
, or a color specified in the hexadecimal
#RRGGBB
format, such as
#FF0000
.
char
This attribute is used to define the character to which element contents are aligned
when the
align
attribute is set to the
char
value.
charoff
This attribute contains an offset, specified as a positive or negative integer, to align
characters as related to the
char
value. A value of
2
, for example, would align characters in
a cell two characters to the right of the character defined by the
char
attribute.