HTML and CSS Reference
In-Depth Information
form="id of related form element"
id="unique alphanumeric identifier"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
itemtype="microdata type in URL format"
lang="language code"
name="element name for submission purposes"
spellcheck="true | false"
style="style information"
title="advisory text">
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
Element-Specific Attributes
for This attribute should be set to the id value(s) of the elements that target this element.
form This attribute should be set to the id value of the form element that the output
element is associated with; otherwise, the nearest parent form is used.
name This attribute should set the name to be used in a name/value pair if the element is
used in form submission.
<form action="#" method="get" id="testform">
<p><input type="date" id="year"
oninput="year.value = valueAsDate.getYear()">
<p> HTML5 released in the year
<output for="year"> &nbsp; </output></p>
<output form="testform" for="year"> </output>
Not currently supported by any browser, but addressed with a custom element.
Search WWH ::

Custom Search