HTML <small> tagS2C Home   « HTML <small> tag

Definition

The <small> tag is used for defining disclaimers, caveats, legal restrictions, copyright and can also be used for attribution and for satisfying licensing requirements.

You can also use the CSS font-size property to size text with a higher degree of control.

Example


<p>Money back guarantee! <small>terms & conditions apply...</small></p>

Money back guarantee! terms & conditions apply...

Attributes

The following attributes can be used with the <small> tag.


<small> Specific Attributes
Attribute Value Description Example
There are no required or optional attributes specific to the <small> tag.
<small> Global Attributes
Attribute Description Example
Common
classSpecifies a classname for the element allowing you to apply the style of the predefined class to the content.

<small class="name">Smaller Text</small>
idSpecifies a unique id for the element allowing you to apply the style of the predefined id to the content.

<small id="name">Smaller Text</small>
styleSpecifies an inline style for the element allowing you to apply the style to the contentt.

<small style="color:red;">Smaller Text</small>
titleSpecifies an inline style for the element allowing you to apply the style to the content.

<small title="Content info">Smaller Text</small>
Keyboard
accesskeySpecifies a keyboard shortcut to associate with the element.

<small accesskey="a">Smaller Text</small>
tabindexSpecifies a tab order for the element.

<small tabindex="1">Smaller Text</small>
Language
dirSpecifies the directional flow of the content.

<!-- The text will flow from left to right -->
<small dir="ltr">Smaller Text</small>
<!-- The text will flow from right to left -->
<small dir="rtl">Smaller Text</small>
langSpecifies a language code for the content of the element.

<small lang="en">Smaller Text</small>
spellcheckSpecifies an inline style for the element allowing you to apply the style to the contentt.

<!-- Valid values true and false. -->
<!-- Default inherited / browser specific. -->
<small spellcheck="true">Smaller Text</small> 
translateSpecifies an inline style for the element allowing you to apply the style to the content.

<!-- Valid values yes and no. -->
<!-- Default yes. -->
<small translate="no">Smaller Text</small> 
Miscellaneous
contenteditableSpecifies whether the content of the element is editable.

<!-- Valid values true and false. -->
<!-- Default inherited. -->
<small contenteditable="true">Smaller Text</small> 
draggableSpecifies whether the element is draggable.

<!-- Valid values true and false. -->
<!-- Default browser specific. -->
<small draggable="true">Smaller Text</small>
hiddenSpecifies whether the element is not yet, or no longer, relevant.

<!-- Valid values an empty string or hidden -->
<small hidden>Smaller Text</small> 
<small hidden="hidden">Smaller Text</small> 
<small> Event Attributes
Attribute Description Example
Document Element
oncopyThe script to be run when the user copies the content of an element.

 <!-- Executes go() function -->
<small oncopy="go()">Smaller Text</small> 
oncutThe script to be run when the user cuts the content of an element.

 <!-- Executes go() function -->
<small oncut="go()">Smaller Text</small>
onpasteThe script to be run when the user pastes some content into an element.

 <!-- Executes go() function -->
<small onpaste="go()">Smaller Text</small>
Drag and Drop
ondragThe script to be run when an element is dragged.

 <!-- Executes go() function -->
<small ondrag="go()">Smaller Text</small>
ondragendThe script to be run when an element has stopped being dragged.

 <!-- Executes go() function -->
<small ondragend="go()">Smaller Text</small>
ondragenterThe script to be run when an element has been dragged to a valid drop target.

 <!-- Executes go() function -->
<small ondragenter="go()">Smaller Text</small>
ondragleaveThe script to be run when an element leaves a valid drop target.

 <!-- Executes go() function -->
<small ondragleave="go()">Smaller Text</small>
ondragoverThe script to be run when an element is being dragged over a valid drop target.

 <!-- Executes go() function -->
<small ondragover="go()">Smaller Text</small>
ondragstartThe script to be run at the start of a drag operation.

 <!-- Executes go() function -->
<small ondragstart="go()">Smaller Text</small>
ondropThe script to be run when a dragged element is being dropped.

 <!-- Executes go() function -->
<small ondrop="go()">Smaller Text</small>
Form
onblurThe script to be run when the element loses focus.

 <!-- Executes go() function -->
<small onblur="go()">Smaller Text</small>
onchangeThe script to be run when object changed and attempt to leave field.

 <!-- Executes go() function -->
<small onchange="go()">Smaller Text</small>
oncontextmenuThe script to be run when a context menu is triggered.

 <!-- Executes go() function -->
<small oncontextmenu="go()">Smaller Text</small>
onfocusThe script to be run when the element gets focus.

 <!-- Executes go() function -->
<small onfocus="go()">Smaller Text</small>
oninputThe script to be run when an element gets user input.

 <!-- Executes go() function -->
<small oninput="go()">Smaller Text</small>
oninvalidThe script to be run when an element is invalid.

 <!-- Executes go() function -->
<small oninvalid="go()">Smaller Text</small>
onresetThe script to be run when a dragged element is being dropped.

 <!-- Executes go() function -->
<small onreset="go()">Smaller Text</small>
onselectThe script to be run when some or all of the contents of an object are selected.

 <!-- Executes go() function -->
<small onselect="go()">Smaller Text</small>
onsubmitThe script to be run when a form is submitted.

 <!-- Executes go() function -->
<small onsubmit="go()">Smaller Text</small>
Keyboard
onkeydownThe script to be run when an element is in focus and keyboard key is pressed down.

 <!-- Executes go() function -->
<small onkeydown="go()">Smaller Text</small>
onkeypressThe script to be run when an element is in focus and keyboard key is pressed down and released.

 <!-- Executes go() function -->
<small onkeypress="go()">Smaller Text</small>
onkeyupThe script to be run when an element is in focus and keyboard key is released.

 <!-- Executes go() function -->
<small onkeyup="go()">Smaller Text</small>
Media
onabortThe script code to be run on abort.

 <!-- Executes go() function -->
<small onabort="go()">Smaller Text</small>
oncanplayThe script to be run when a file has buffered enough so it is ready to start playing.

 <!-- Executes go() function -->
<small oncanplay="go()">Smaller Text</small>
oncanplaythroughThe script to be run when a file can be played all the way to the end without further need of buffering.

 <!-- Executes go() function -->
<small oncanplaythrough="go()">Smaller Text</small>
oncuechangeThe script to be run when the cue changes when using the track element.

 <!-- Executes go() function -->
<small oncuechange="go()">Smaller Text</small>
ondurationchangeThe script to be run when the length of the media is changed.

 <!-- Executes go() function -->
<small ondurationchange="go()">Smaller Text</small>
onemptiedThe script to be run when a media resource element suddenly becomes empty, usually due to an error.

 <!-- Executes go() function -->
<small onemptied="go()">Smaller Text</small>
onendedThe script to be run when the media has reach the end.

 <!-- Executes go() function -->
<small onended="go()">Smaller Text</small>
onloadeddataThe script to be run when media data is loaded and playback can start.

 <!-- Executes go() function -->
<small onloadeddata="go()">Smaller Text</small>
onloadedmetadataThe script to be run when metadata has been loaded.

 <!-- Executes go() function -->
<small onloadedmetadata="go()">Smaller Text</small>
onloadstartThe script to be run whenthe media resource has started loading.

 <!-- Executes go() function -->
<small onloadstart="go()">Smaller Text</small>
onpauseThe script to be run when the media resource has been paused.

 <!-- Executes go() function -->
<small onpause="go()">Smaller Text</small>
onplayThe script to be run when the media resource starts playback.

 <!-- Executes go() function -->
<small onplay="go()">Smaller Text</small>
onplayingThe script to be run when when playback has already begun.

 <!-- Executes go() function -->
<small onplaying="go()">Smaller Text</small>
onprogressThe script to be run when the browser is fetching the media data.

 <!-- Executes go() function -->
<small onprogress="go()">Smaller Text</small>
onratechangeThe script to be run when the playback rate changes.

 <!-- Executes go() function -->
<small onratechange="go()">Smaller Text</small>
onseekedThe script to be run when the seeking attribute is set to false indicating that seeking has finished.

 <!-- Executes go() function -->
<small onseeked="go()">Smaller Text</small>
onseekingThe script to be run when the seeking attribute is set to true indicating that seeking is currently active.

 <!-- Executes go() function -->
<small onseeking="go()">Smaller Text</small>
onstalledThe script to be run when the browser is unable to continue fetching media data.

 <!-- Executes go() function -->
<small onstalled="go()">Smaller Text</small>
onsuspendThe script to be run when media data has stopped before being completely loaded.

 <!-- Executes go() function -->
<small onsuspend="go()">Smaller Text</small>
ontimeupdateThe script to be run when the media resources current playback position has changed.

 <!-- Executes go() function -->
<small ontimeupdate="go()">Smaller Text</small>
onvolumechangeThe script to be run when the volume has changed or been muted.

 <!-- Executes go() function -->
<small onvolumechange="go()">Smaller Text</small>
onwaitingThe script to be run when the media resource has paused but is expected to resume.

 <!-- Executes go() function -->
<small onwaiting="go()">Smaller Text</small>
Mouse
onclickThe script to be run when when a mouse is clicked on an element.

 <!-- Executes go() function -->
<small onclick="go()">Smaller Text</small>
ondblclickThe script to be run when a mouse is double clicked on an element.

 <!-- Executes go() function -->
<small ondblclick="go()">Smaller Text</small>
onmousedownThe script to be run when he mouse button is pressed down while the cursor is over an element.

 <!-- Executes go() function -->
<small onmousedown="go()">Smaller Text</small>
onmousemoveThe script to be run when the mouse button is moved.

 <!-- Executes go() function -->
<small onmousemove="go()">Smaller Text</small>
onmouseoutThe script to be run when the mouse cursor moves off an element.

 <!-- Executes go() function -->
<small onmouseout="go()">Smaller Text</small>
onmouseoverThe script to be run when the mouse cursor moves over an element.

 <!-- Executes go() function -->
<small onmouseover="go()">Smaller Text</small>
onmouseupThe script to be run when the mouse button is released while the cursor is over the element.

 <!-- Executes go() function -->
<small onmouseup="go()">Smaller Text</small>
onwheelThe script to be run when the mouse wheel rolls up or down over an element.

 <!-- Executes go() function -->
<small onwheel="go()">Smaller Text</small>
Scroll
onscrollThe script code to be run when the scrollbar of an element is being scrolled.

 <!-- Executes go() function -->
<small onscroll="go()">Smaller Text</small> 
Window - NONE

Relevant HTML Tutorials

HTML Basics - Text Tags