Code has been added to clipboard!

The CSS Font-Style Property

Reading time 1 min
Published Aug 10, 2017
Updated Oct 10, 2019

Making CSS change font style

The CSS font-style property defines custom styling for the text characters:

Example
p.oblique {
    font-style: oblique;
}

p.italic {
    font-style: italic;
}

p.normal {
    font-style: normal;
    
}
Udacity
Pros
  • Simplistic design (no unnecessary information)
  • High-quality courses (even the free ones)
  • Variety of features
Main Features
  • Nanodegree programs
  • Suitable for enterprises
  • Paid certificates of completion
Coursera
Pros
  • Professional service
  • Flexible timetables
  • A variety of features to choose from
Main Features
  • Professional certificates of completion
  • University-level courses
  • Multiple Online degree programs
Datacamp
Pros
  • Great user experience
  • Offers quality content
  • Very transparent with their pricing
Main Features
  • Free certificates of completion
  • Focused on data science skills
  • Flexible learning timetable

CSS font-style syntax and values

There are three values you can choose from when defining CSS font styles:

font-style: value;

Value Description
normal The default value. The font is displayed normally
italic The font is displayed in italics
oblique The font is slated to the side by a specified degree (-90deg to -90deg) or 14 degrees by default

Note: keep in mind that large portions of italic in CSS can be hard to read.

Browser support

Browser image
Chrome
1+
Browser image
Edge
12+
Browser image
Firefox
1+
Browser image
IE
4+
Browser image
Opera
7+
Browser image
Safari
1+

Mobile browser support

Browser image
Chrome
18+
Browser image
Firefox
4+
Browser image
Opera
10.1+
Browser image
Safari
1+

Latest Udacity Coupon Found:

Verified STAFF PICK

75% OFF COURSES

Udacity Black Friday Offer

The best time to save on Udacity courses is now - follow this coupon to access a 75% Udacity Black Friday discount & enjoy learning at a very low cost!

Expiration date: 25/01/2021
3176 People Used
Only 97 Left
Rating
5.0