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
onload, onreadystatechange
Element-Specific Attributes
charset This attribute specifies the character set used by the linked document. Allowed
values for this attribute are character set names, such as EUC-JP , as defined in RFC 2045.
disabled This DOM Level 1-defined attribute is used to disable a link relationship.
The presence of the attribute is all that is required to remove a linking relationship. In
conjunction with scripting, this attribute could be used to turn on and off various style
sheet relationships.
href This attribute specifies the URL of the linked resource. A URL might be absolute or
relative.
hreflang This attribute is used to indicate the language of the linked resource. See the
“Language Attributes Reference” section earlier in this chapter for information on allowed
values.
media This attribute specifies the destination medium for any linked style information, as
indicated when the rel attribute is set to stylesheet . The value of the attribute might be a
single media descriptor, such as screen , or a comma-separated list. Possible values for this
attribute include all , aural , braille , print , projection , and screen . Other values also
might be defined, depending on the browser.
rel This attribute names a relationship between the linked document and the current
document. Multiple values can be specified and should be separated by spaces. The value
of the rel attribute is simply a text value, which can be anything the author desires.
However, a browser can interpret standardized relationships in a particular way. For
example, a browser might provide special icons or navigation features when the meaning
of a link is understood. Currently, document relationship values are neither widely
understood nor supported by browsers, but the HTML 4.01 and HTML5 specifications list
some proposed relationship values, as shown in Table 3-22. Note that these values are not
case sensitive.
Search WWH ::




Custom Search