HTML and CSS Reference
In-Depth Information
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
<small>
small text
</small>
.
</p>
<p>
This element can be applied
<small><small><small>
multiple
times
</small></small></small>
to make things even smaller.
</p>
Compatibility
HTML 3.2, 4, 4.01, 5
XHTML 1.0, 1.1
Firefox 1+, Internet Explorer 2+,
Netscape 2+, Opera 4+, Safari 1+
Notes
• This element is equivalent to using
font-size: smaller
.
• A
<small>
tag can be used multiple times to decrease the size of text to a greater
degree. Using more than six
<small>
tags together doesn't make sense because
browsers currently only support relative font sizes from
1
to
7
or, in CSS, from
xx-small
to
xx-large
.
• With style sheets, it would seem this element should be inappropriate, similar to
other obsolete or deprecated elements, including
big
, which is marked obsolete
under HTML5. However, currently it is included in the specification and is defined
to indicate side comments or small print text, as in legal information.
<source> (Source)
This empty HTML5 element is used to specify multiple media resources for media elements
like
audio
and
video
.
HTML5 Standard Syntax
<source
accesskey="spaced list of accelerator key(s)"
class="class name(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"
dir="ltr | rtl"
draggable="true | false | auto"
height="pixels"
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"