HTML and CSS Reference
In-Depth Information
Events Defined by Internet Explorer
onactivate, onbeforeactivate, onbeforecopy, onbeforecut, onbeforedeactivate,
onbeforeeditfocus, onbeforepaste, onblur, onclick, oncontextmenu,
oncontrolselect, oncopy, oncut, ondblclick, ondeactivate, ondrag,
ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop,
onfocus, onfocusin, onfocusout, onhelp, onkeydown, onkeypress, onkeyup,
onlosecapture, onmousedown, onmouseenter, onmouseleave, onmousemove,
onmouseout, onmouseover, onmouseup, onmousewheel, onmove, onmoveend,
onmovestart, onpaste, onpropertychange, onreadystatechange, onresize,
onresizeend, onresizestart, onselectstart, ontimeerror
Examples
<p> Here is some <sub> subscripted </sub> text. </p>
<p> The secret value of the formula is X <sub><small> 2 </small></sub> . </p>
Compatibility
HTML 3.2, 4, 4.01, 5
XHTML 1.0, 1.1, Basic
Firefox 1+, Internet Explorer 3+,
Netscape 2+, Opera 4+, Safari 1+
Notes
• The HTML 3.2 specification supports no attribute for the sub element.
• The CSS property vertical-align can be used to simulate this element.
• Most browsers may slightly shift text lines below a <sub> tag.
<sup> (Superscript)
This element renders its content as superscripted text.
Syntax
<sup
class="class name(s)"
dir="ltr | rtl"
id="unique alphanumeric string"
lang="language code"
style="style information"
title="advisory text">
</sup>
Attributes Introduced by HTML5
accesskey="spaced list of accelerator key(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"
draggable="true | false | auto"
hidden="hidden"
itemid="microdata id in URL format"
Search WWH ::




Custom Search