How to use small formatting in HTML?

HTMLWeb DevelopmentFront End Technology

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.

Example

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

Live Demo

<!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>
raja
Published on 18-Jan-2018 15:04:09
Advertisements