HTML<small> tag

HTML <small> tag makes text font by one size smaller than the document?s base font size (Such as large to medium, medium to small, etc.)

In HTML5, <small> tag is used for identifying secondary importance such as copyright, side comments, and legal notices.

Tips: The <small> tag can be nested which means we can use <small> tag inside one another for multiple times, and it will continue to decrease the font size than its surrounding text.

Syntax

<small>Write your content here...... <small>  

Following are some specifications about the HTML <small> tag

DisplayInline
Start tag/End tagBoth Start and End tag
Usagetextual

Example

<!DOCTYPE html>  

<html>  

<head>  

<title>HTML small tag</title>  

</head>  

<body>  

 <h2>Example of small tag</h2>  

 <p style="color: green;">This is normal font size.....  

   <small style="color: blue;">It is smaller than previous...  

       <small style="color: red;">It is smallest.</small>  

   </small>  

 </p>  

</body>  

</html>

Output:

HTML small tag

Attribute:

Tag-specific attributes:

The <small> tag does not contain any specific attribute.

Global attribute:

The <small> tag supports the Global attributes in HTML.

Event attribute:

The <small> tag supports the Event attributes in HTML.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<small>YesYesYesYesYes

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *