To set the font style, use the font-style property. Set the font to italic, normal and oblique.
Example
You can try to run the following code to set the font-style to italic with CSS:
<html> <head> </head> <body> <p style = "font-style:italic;"> Europe, Australia, South America are continents. </p> </body> </html>