Computer >> Computer tutorials >  >> Programming >> HTML

How to use small formatting in HTML?


Small font is used to define small formatting. For small formatting, use the HTML <small> tag. The text inside the <small>…</small> tag will get a smaller font.

Just keep in mind to use the <small>...</small> tag inside the <p>…</p> tag.

How to use small formatting in HTML?

Example

You can try the following code to use small formatting in an HTML page

<!DOCTYPE html>
<html>
   <head>
      <title>HTML small font</title>
   </head>

   <body>
      <h1>Heading</h1>
      <p>
         This is demo text<br>
         <small>
            This text will be smaller
         </small>
      </p>
   </body>
</html>

Output

How to use small formatting in HTML?