Language
日本語
English

Caution

JavaScript is disabled in your browser.
This site uses JavaScript for features such as search.
For the best experience, please enable JavaScript before browsing this site.

CSS Dictionary

  1. Home
  2. CSS Dictionary
  3. font-style

font-style

Specifies the style (font style) of text. You can set one of three values: 'normal' (standard), 'italic' (italic), or 'oblique' (oblique).

Sample Code

p.test { font-style: normal;}
p.test1 { font-style: italic;}

Available Values

ValueDescription
normalDisplays text in the standard font style. This is the default value.
italicDisplays text in italic style.
obliqueDisplays text in oblique (slanted) style.

Browser Display Result

<p style="font-style: normal;">This is a p element with 'font-style: normal' applied.</p>

<p style="font-style: italic;">This is a p element with 'font-style: italic' applied.</p>

<p style="font-style: oblique;">This is a p element with 'font-style: oblique' applied.</p>

Browser Compatibility

Chrome Chrome
1 and later
Firefox Firefox
1 and later
Safari Safari
1 and later
Edge Edge
12 and later
Supported in all versions.
IE IE
11
10
9
8
7
6
Opera Opera
7 and later
6 and earlier ×
iOS Safari iOS Safari
1 and later
Android Android Browser
4.4 and later
3 and earlier ×
Chrome Android Chrome Android
Latest
Same as the desktop version.
Firefox Android Firefox Android
Latest
Same as the desktop version.

※ Version data is based on MDN.

Overview

Specifies the style of the font (text).

If the displayed font does not have an italic or oblique variant, most browsers will simulate a slanted appearance.

Oblique simply slants the characters, while italic typically slants the characters and applies a cursive design.

Many Japanese fonts do not have italic or oblique variants. When 'italic' or 'oblique' is specified in CSS, both typically render the same — a slightly slanted version of the regular font.

If you find any errors or copyright issues, please .