HTML and CSS Reference
In-Depth Information
Events Defined by Internet Explorer
onactivate, onbeforeactivate, onbeforecopy, onbeforecut, onbeforedeactivate,
onbeforeeditfocus, onbeforepaste, onblur, onclick, oncontextmenu,
oncontrolselect, oncopy, oncut, ondblclick, ondeactivate, ondrag,
ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop,
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
align
This attribute is used to align the contents of the cells within a
<tfoot>
tag.
Common values are
center
,
justify
,
left
, and
right
. The HTML and XHTML
specifications also define a value of
char
. When
align
is set to
char
, the attribute
char
must be present and set to the character to which cells should be aligned. A common use of
this approach would be to set cells to align on a decimal point.
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, as a positive or negative integer, for aligning
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.
valign
This attribute is used to set the vertical alignment for the table cells within a
<tfoot>
tag. The specification defines
baseline
,
bottom
,
middle
, and
top
. Internet
Explorer also supports
center
, which should be the same as
middle
.
Example
<table border="1" width="80%">
<tfoot align="center" class="tablefooter"
valign="bottom">
<td>
This is part of the footer.
</td>
<td>
This is also part of the footer.
</td>
</tfoot>
<tbody class="tablebody">
<tr>
<td>
The contents of the table!
</td>
</tr>
</tbody>
</table>
Compatibility
HTML 4, 4.01, 5
XHTML 1.0, 1.1
Firefox 1+, Internet Explorer 4+,
Netscape 6+, Opera 5+, Safari 1+