NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

HTML XHTML The Complete Reference
home » reference » appendix a » html element reference

<small> (Small Text)


This element renders the enclosed text one font size smaller than a document's base font size unless it is already set to the smallest size.

Standard Syntax


<small
class="class name(s)"
dir="ltr | rtl"
id="unique alphanumeric string"
lang="language code"
style="style information"
title="advisory text"
</small>

Attributes Defined by Internet Explorer


accesskey="key" (5.5)
contenteditable="false | true | inherit" (5.5)
hidefocus="true | false" (5.5)
language="javascript | jscript | vbs | vbscript" (4)
tabindex="number" (5.5)
unselectable="on | off"

Standard Event Attributes


onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup

Events Defined by Internet Explorer


onactivate, onbeforeactivate, onbeforecopy, onbeforecut, onbeforedeactivate, onbeforeeditfocus, onbeforepaste, onblur, oncontextmenu, oncontrolselect, oncopy, oncut, ondeactivate, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onfocus, onfocusin, onfocusout, onhelp, onlosecapture, onmouseenter, onmouseleave, onmousewheel, onmove, onmoveend, onmovestart, onpaste, onpropertychange, onreadystatechange, onresize, onresizeend, onresizestart, onselectstart, ontimeerror

Examples


Here is some <small>small text</small>.

This element can be applied <small><small><small>multiple times</small></small></small>to make things even smaller.

Compatibility


HTML 3.2, 4, 4.01, XHTML 1.0, 1.1
Internet Explorer 2, 3, 4, 5, 5.5, 6
Netscape 2, 3, 4, 4.5-4.8, 6, 7
Opera 4-7

Notes


The <small> element can be used multiple times to decrease the size of text to a greater degree. Using more than six <small> elements together doesn't make sense because browsers currently only support relative font sizes from 1 to 7. As style sheets become more common, this element might fall out of favor.

The default base font size for a document typically is 3, although it can be changed with the <basefont> element.

(X)HTML Elements
CSS Properties
Previous: select Next: spacer
< Home | About | Chapters | Examples | Errata | Reference | Site Map >