Shorthand property to set the font with CSS

JavascriptWeb DevelopmentFront End Scripts

The font property is used as shorthand to specify the number of other font properties, such as font family, size, style, etc.

Example

You can try to run the following code to learn how to work with font property:

<html>
   <head>
   </head>
   <body>
      <p style = "font:italic small-caps bold 13px georgia;">
         Applying all the properties on the text at once.
      </p>
   </body>
</html>
raja
Published on 13-Apr-2018 10:44:00
Advertisements