Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

How to set smaller text using HTML5 ?

  • Last Updated : 29 May, 2020

In this article, we weill 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:

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

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

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari
My Personal Notes arrow_drop_up
Recommended Articles
Page :