Open In App

How to set smaller text using HTML5 ?

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: 




<!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:

Article Tags :