Signup/Sign In
PUBLISHED ON: AUGUST 25, 2021

How to write very small text in HTML?

The small text can be used for some side comments or copyright in the webpage. In this tutorial, we are going to list out the ways through which we can create a small text.

Using <small> tag

The <small> tag is used for smaller text. It renders the text to font-size smaller. Here is an example to write very small text in HTML using <small> tag.

<!DOCTYPE html>
<html lang="en">
<head>
 <title>HTML </title>
</head>
<body>
  <h2> very small text </h2>
  <p> Lets create some <small> smaller text within the page</small> </p>
</body>
</html>

Output

Here is the output of the above program.

small text

Using CSS properties

We can also write very small text using CSS properties. Use font-size="some small value" to create smaller text within the page. Here is an example to create very small text using font-size property.

<!DOCTYPE html>
<html lang="en">
<head>
 <title>HTML </title>
</head>
<body>
  <h2> very small text </h2>
  <p> Lets create some
    <span style="font-size:0.8em">small text using CSS properties.</span>
  </p>
</body>
</html>

Output

Here is the output of the above program.

small text

Conclusion

We can create a very small text on the webpage. Use <small> tag or use CSS property to create very small text. Use the small text for side comments, copyright, and legal text.



About the author: