HTML and CSS Reference
In-Depth Information
HTML 4 Event Attributes
onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown,
onmousemove, onmouseout, onmouseover, onmouseup
HTML5 Event Attributes
onabort, onblur, oncanplay, oncanplaythrough, onchange, onclick,
oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave,
ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended,
onerror, onfocus, onformchange, onforminput, oninput, oninvalid, onkeydown,
onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart,
onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel,
onpause, onplay, onplaying, onprogress, onratechange, onreadystatechange,
onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit,
onsuspend, ontimeupdate, onvolumechange, onwaiting
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, onresizeend,
onresizestart, onselectstart, ontimeerror
Element-Specific Attributes
align
This attribute specifies the alignment of the caption. HTML 4 defines
bottom
,
left
,
right
, and
top
as legal values. Internet Explorer also supports
center
. Because this
attribute does not provide the possibility to combine vertical and horizontal alignments,
Microsoft has introduced the
valign
attribute for the
caption
element.
valign
This Internet Explorer-specific attribute specifies whether the table caption appears
at the
top
or
bottom
. The default is
top
.
Example
<table border=
"
1
"
>
<caption align="top">
Our High-Priced Menu
</caption>
<tr>
<td>
Escargot
</td>
<td>
Filet Mignon
</td>
<td>
Big Mac
</td>
</tr>
</table>
Compatibility
HTML 3.2, 4, 4.01, 5
XHTML 1.0, 1.1, Basic
Firefox 1+, Internet Explorer 4+,
Netscape 3+, Opera 4+, Safari 1+