Skip to content
Related Articles

Related Articles

How to set smaller text using HTML5 ?

Improve Article
Save Article
  • Last Updated : 01 Jun, 2022
Improve Article
Save Article

In this article, we will set a smaller text by using a <small> tag Element in The Document. This tag in HTML is used to set small font sizes. 

Syntax:

<small> Content... </small>

Example 1: 

html




<!DOCTYPE html>
<html>
 
<head>
    <title>
        How to set smaller
        text using HTML5 ?
    </title>
 
    <style>
        body {
            text-align: center;
        }
 
        h1 {
            color: green;
        }
    </style>
</head>
 
<body>
    <h1>GeeksforGeeks</h1>
 
    <h2>
        HTML5: How to define
        smaller text?
    </h2>
 
    <small>
        Welcome to GeeksforGeeks!
    </small>
</body>
 
</html>

Output:

  

Supported Browsers:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!