Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML small Tag

  • Difficulty Level : Basic
  • Last Updated : 17 Mar, 2022

The <small> tag in HTML is used to set small font size.
Syntax: 
 

<small> Contents... </small>

Example 1: 
 

HTML




<html>
         <body>
            <h1>GeeksforGeeks</h1>
            <h2><small> Tag</h2>
             
            <!-- html small tag is used here -->
            <small>Welcome to GeeksforGeeks!</small>
             
         </body>
         
</html>

Output: 
 

Example 2: Use CSS property to set the font size smaller. 
 

HTML




<!DOCTYPE html>
<html>
    <head>
        <title>small Tag</title>
        <style>
            body {
                text-align:center;
            }
            h1 {
                color:green;
            }
            .gfg {
                font-size:smaller;
            }
        </style>
    </head>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2>font-size: smaller;</h2>
        <div class = "gfg">Welcome to GeeksforGeeks!</div>
    </body>
</html>                   

Output: 
 

Supported Browsers: 
 

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera

 


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!