HTML and CSS Reference
In-Depth Information
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
In HTML5, a web developer can create his own attributes to add to any
HTML element as long as the attribute name begins with the characters
"data-" and has at least one more letter or number following the dash. As
many data attributes as needed can be added to an HTML element, provided
that there are no duplicate attribute names in any single element. he value
of a data attribute follows the same restrictions as other attributes: Charac-
ter entities are needed for special symbols, but other markup is not parsed as
HTML. For example, the following HTML element (a list item) has extra data
attributes that can be used by a client-side script to sort a listing or highlight
speciic items in response to a user action.
<li class="book-title"
data-borrower="Vonnegut, K."
data-status="overdue"> Venus On The Half-Shell </li>
Search WWH ::




Custom Search