HTML and CSS Reference
In-Depth Information
dir="ltr | rtl"
draggable="true | false | auto"
hidden="hidden"
id="unique alphanumeric identifier"
itemid="microdata id in URL format"
itemprop="microdata value"
itemref="space-separated list of IDs that may contain microdata"
itemscope="itemscope"
itemtype="microdata type in URL format"
lang="language code"
spellcheck="true | false"
style="style information"
tabindex="number"
title="advisory text">
</mark>
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
Examples
<p> The new HTML5 specification is in the works. While
<mark style="background-color: red;"> many features are not currently
implemented or even well defined </mark> yet,
<mark style="background-color: green;"> progress is being made </mark> .
Stay tuned to see more new HTML elements added to your Web documents in
the years to come. </p>
<p> This is <mark> marked text </mark> was it yellow? </p>
Compatibility
HTML5 Not currently supported by any browser, but addressed with a custom element.
Notes
• Hints in the HTML5 specification suggest text within this element will be black on
a yellow background unless other CSS rules override it.
• This element is not yet implemented in any browser. However, given that most
browsers can handle custom elements, it would be easy enough to simulate the
idea of it.
Search WWH ::




Custom Search