totn HTML

HTML: <small> tag

This HTML tutorial explains how to use the HTML element called the <small> tag with syntax and examples.

Description

The HTML <small> tag makes text one font size smaller in the HTML document. This tag is also commonly referred to as the <small> element.

Syntax

In HTML, the syntax for the <small> tag is:

<body>
<p>This is a paragraph and <small>smaller text goes here</small></p>
</body>

Sample Output


Attributes

Only the Global Attributes apply to the <small> tag. There are no attributes that are specific to the <small> tag.

Note

  • The HTML <small> element is found within the <body> tag.
  • The <small> tag is used to make the text one size smaller (ie: from x-large to large, large to medium, medium to small).
  • The <small> tag can not make the text smaller than the browser's minimum font size.

Browser Compatibility

The <small> tag has basic support with the following browsers:

  • Chrome
  • Android
  • Firefox (Gecko)
  • Firefox Mobile (Gecko)
  • Internet Explorer (IE)
  • Edge Mobile
  • Opera
  • Opera Mobile
  • Safari (WebKit)
  • Safari Mobile

Example

We will discuss the <small> tag below, exploring examples of how to use the <small> tag in HTML5, HTML 4.01 Transitional, XHTML 1.0 Transitional, XHTML 1.0 Strict, and XHTML 1.1.