HTML and CSS Reference
In-Depth Information
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, onbeforedeactivate, onbeforeeditfocus, onblur, oncellchange,
onclick, oncontrolselect, ondataavailable, ondatasetchanged,
ondatasetcomplete, ondblclick, ondeactivate, ondrag, ondragend,
ondragenter, ondragleave, ondragover, ondragstart, ondrop, onerror,
onfocus, onkeydown, onkeypress, onkeyup, onlosecapture, onmove, onmoveend,
onmovestart, onpropertychange, onreadystatechange, onresize, onresizeend,
onresizestart, onrowenter, onrowexit, onrowsdelete, onrowsinserted,
onscroll, onselectstart
Element-Specific Attributes
align
This attribute aligns the object with respect to the surrounding text. The default is
left
. The HTML specification defines
bottom
,
middle
,
right
, and
top
, as well. Browsers
might provide an even richer set of alignment values. The behavior of alignment for objects
is similar to images. Under the strict HTML and XHTML specifications, the
object
element
does not support this attribute.
archive
This attribute contains a URL for the location of an archive file. An archive file
typically is used to contain multiple object files to improve the efficiency of access.
border
This attribute specifies the width of the object's borders, in pixels or as a percentage.
classid
This attribute contains a URL for an object's implementation. The URL syntax
depends upon the object's type. With ActiveX controls, the value of this attribute does not
appear to be a URL but something of the form
CLSID:
object-id
; for example,
CLSID:
99B42120-6EC7-11CF-A6C7-00AA00A47DD2
.
code
Under the old Microsoft implementation, this attribute contains the URL referencing
a Java applet class file. The way to access a Java applet under the HTML/XHTML
specification is to use
<object classid="java: classname.class">
. The pseudo-URL
java:
is used to indicate a Java applet. Microsoft Internet Explorer 4 and beyond support
this style, so
code
should not be used.
codebase
This attribute contains a URL to use as a relative base to access the object
specified by the
classid
attribute.
codetype
This attribute specifies an object's MIME type. Do not confuse this attribute with
type
, which specifies the MIME type of the data the object may use, as defined by the
data
attribute.