HTML and CSS Reference
In-Depth Information
Attributes Defined by Netscape
marginheight="pixels" (4)
marginwidth="pixels" (4)
HTML 4 Event Attributes
onclick, ondblclick, onkeydown, onkeypress, onkeyup, onload, onmousedown,
onmousemove, onmouseout, onmouseover, onmouseup, onunload
HTML5 Event Attributes
onabort, onafterprint, onbeforeprint, onbeforeunload, onblur, oncanplay,
oncanplaythrough, onchange, onclick, oncontextmenu, ondblclick, ondrag,
ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop,
ondurationchange, onemptied, onended, onerror, onformchange, onforminput,
oninput, oninvalid, onhashchange, onkeydown, onkeypress, onkeyup, onload,
onloadeddata, onloadedmetadata, onloadstart, onmessage, onmousedown,
onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onoffline,
ononline, onpause, onplay, onplaying, onpopstate, onprogress, onratechange,
onreadystatechange, onredo, onresize, onscroll, onseeked, onseeking,
onselect, onshow, onstalled, onstorage, onsubmit, onsuspend, ontimeupdate,
onundo, onunload, onvolumechange, onwaiting
Events Defined by Internet Explorer
onactivate, onafterprint, onbeforeactivate, onbeforecut, onbeforedeactivate,
onbeforeeditfocus, onbeforepaste, onbeforeprint, onbeforeunload,
oncontextmenu, oncontrolselect, oncut, ondeactivate, ondrag, ondragend,
ondragenter, ondragleave, ondragover, ondragstart, ondrop, onfilterchange,
onfocusin, onfocusout, onlosecapture, onmouseenter, onmouseleave,
onmousewheel, onmove, onmoveend, onmovestart, onpaste, onpropertychange,
onreadystatechange, onresizeend, onresizestart, onscroll, onselect,
onselectstart
Element-Specific Attributes
alink
This attribute sets the color for active links within the document. Active links
represent the state of a link as it is being clicked. The value of the attribute can be either a
named color like
red
or a color specified in the hexadecimal
#RRGGBB
format like
#FF0000
. The CSS pseudo-class
a:active
should be used instead.
background
This attribute contains a URL for an image file, which will be tiled to provide
the document background. The CSS
background-image
property should be used instead.
bgcolor
This attribute sets the background color for the document. Its value can be either a
named color like
red
or a color specified using the hexadecimal
#RRGGBB
format like
#FF0000
. The CSS
background-color
property should be used instead.
bgproperties
This attribute, first introduced in Internet Explorer 2, has one value,
fixed
,
which causes the background image to act as a fixed watermark and not to scroll. The CSS
property
background-attachment
provides similar functionality.