Computer >> Computer tutorials >  >> Programming >> Javascript

Usage of font-style property in CSS


The font-style property is used to make a font italic or oblique. You can try to run the following code to set the font-style property:

<html>
   <head>
   </head>
   <body>
      <p style = "font-style:italic;">
         This text will be rendered in italic style
      </p>
   </body>
</html>