Usage of font-size property in CSS

JavascriptWeb DevelopmentFront End Scripts

The font-size property is used to increase or decrease the size of a font. 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 %.

      <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>
Updated on 30-Jan-2020 10:22:35