CSS Font-Style Property

In this chapter you will learn:
About font-style property
Example of this property
CSS font-style property is used to specify the style of font like normal, italic and oblique. This property is mostly used to display the text as an italic format.
Example of this property:
<html>
<head>
<style type="text/css">
#a
{
font-style:italic;
}
#b
{
 
font-style:normal;
}
#c
{
font-style:oblique;
}
</style>
</head>
<body>
<p id="a"> This is the example of font-style:italic</p>
<p id="b"> This is the example of font-style:normal</p>
<p id="c"> This is the example of font-style:oblique</p>
</body>
</html>

Guide:-
When you run the given program then you will get that the style of the text of paragraphs is different (italic, normal and oblique).
Output:-
example of font-size property

Summary

In this chapter, you have learned about the font-style property and also its uses in the program so now write your own program to use font-style property because if you try yourself then you can learn better. Click on Next button to continue-

More Articles

 

Share your thought



PLEASE DISABLE ADBLOCKER AND SUPPORT US!

Please support us by enabling ads on this page. Refresh

YOU DON'T LIKE ADS, WE ALSO DON'T LIKE ADS!
 
But we have to show ads on our site to keep it free and updated. We have to pay huge server costs, domain costs, CDN Costs, Developer Costs, Electricity and Internet Bill. Your little contribution will encourage us to regularly update this site.