Increase or decrease the size of a font with CSS


The font-size property is used to increase or decrease the font size. The font-size property is used to control the size of fonts. Possible values could be xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger, size in pixels or in %.

<html>
   <head>
   </head>
   <body>
      <p style = "font-size:15px;">This font size is 15 pixels</p>
      <p style = "font-size:small;">This font size is small</p>
      <p style = "font-size:large;">This font size is large</p>
   </body>
</html>

Updated on: 30-Jan-2020

495 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements