small tag (XHTML 1.0)

small text style

Topics

The small tag instructs your browser to render the text with a small font. You don't really have any control of just how small the font is going to be, since it's up to the user agent. In your current browser, it looks like this:

 

This text is small!

 

The big tag is very simple to use, and doesn't offer any really interesting attributes:

<small>This text is small!</small>

In most cases, you're better off using CSS on a span tag to decide the size of the text, which can be done with the font-size CSS property.

Attributes

Attribute Deprecated Required Description
class  space-separated list of classes 
dir  direction for weak/neutral text 
id  document-wide unique id 
lang  language code 
style  associated style info 
title  advisory title 

Events

Event Description
onclicka pointer button was clicked 
ondblclicka pointer button was double clicked 
onkeydowna key was pressed down 
onkeypressa key was pressed and released 
onkeyupa key was released 
onmousedowna pointer button was pressed down 
onmousemovea pointer was moved within 
onmouseouta pointer was moved away 
onmouseovera pointer was moved onto 
onmouseupa pointer button was released 



© htmlpedia.net 2008 - 2012