CSS font-style Property

Beginner
5 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The font-style property chooses a normal, italic, or oblique face from the current font-family.

Italic prefers a designed italic face. Oblique prefers a slanted face (or a slant of the regular face). If the style is missing, browsers often synthesize a slant — control that with font-synthesis. For meaning-based emphasis in HTML, prefer <em> over styling alone.

Baseline · Widely available.

Not deprecated. Spec also defines left / right slant directions, but browsers do not support those values yet. Avoid long blocks of italic text for accessibility.

CSS Syntax

syntax.css
font-style: normal | italic | oblique | oblique <angle> | initial | inherit;

The initial value is normal. For oblique, an optional angle from -90deg to 90deg sets the slant.

Property Values

ValueDescriptionTry it
italicPrefer a true italic face; fall back to oblique or a fake slantTry it
normalUpright face. Initial valueTry it
obliquePrefer a slanted face (default slant about 14deg when synthesized)Try it
oblique <angle>Oblique with an explicit slant, e.g. oblique 20degTry it
initialResets to normalTry it
inheritUses the parent’s font-styleTry it

How to Use font-style

Pick the face you need, then apply it to the element that should change.

  1. Choose a font-family that includes an italic face when you care about true italics (e.g. Georgia).
  2. Set font-style to italic, oblique, or normal.
  3. For emphasis in content, wrap words in <em> and style that element if needed.
  4. Keep italic short — long italic paragraphs are harder to read for many people.
PieceRequired?Role
Text contentYesSomething visible to style
normal / italic / obliqueYesChooses the face
Italic-capable fontRecommendedTrue italic looks better than a fake slant
Optional angleFor obliqueControls slant from -90deg to 90deg

Live Preview

Change only font-style on the sample sentence. The font family stays the same.

Georgia includes a true italic face. Oblique may look similar or use a synthetic slant.

Sample

The quick brown fox jumps over the lazy dog.

font-style: italic

CSS Examples

Each snippet focuses on font-style. Use Try It Yourself for a live editor.

Example 1 — Italic

Use a designed italic face when the font provides one.

CSS
<style>
  p {
    font-family: Georgia, serif;
    font-style: italic;
  }
</style>

<p>This sentence is italic.</p>
Try It Yourself

How It Works

  1. Pick a serif with italics. Georgia ships a true italic design.
  2. Request italic. font-style: italic selects that face.
  3. Fallback path. If italic is missing, the browser may use oblique or synthesize a slant.
  4. Keep it short. Italic works best for a phrase or caption, not whole pages.

Example 2 — Reset to Normal

Force upright text inside an italic parent.

CSS
<style>
  p { font-style: italic; }
  span { font-style: normal; }
</style>

<p>Italic text with a <span>normal</span> word.</p>
Try It Yourself

How It Works

  1. Inherit italic. The paragraph sets italic, so children start italic too.
  2. Override locally. font-style: normal on the span restores upright letters.
  3. Common pattern. Useful inside quotes, citations, or nested emphasis.
  4. Initial value. normal is also what initial restores to.

Example 3 — Oblique with Angle

Request a slanted face and optionally set the angle.

CSS
<style>
  p {
    font-family: Arial, sans-serif;
    font-style: oblique 20deg;
  }
</style>

<p>Oblique text at 20 degrees.</p>
Try It Yourself

How It Works

  1. Ask for oblique. Prefer a slanted face over a designed italic.
  2. Add an angle. 20deg sets how far letters lean (valid range: -90deg to 90deg).
  3. Synthesis. Without a real oblique face, the browser may slant the regular glyphs.
  4. vs italic. Use italic for book-style italics; use oblique when you want a controlled slant.

Edge Cases & Pitfalls

If italic looks fake or hard to read, check these first.

a11y

Long italic blocks are harder to read

MDN notes that large stretches of italic can be difficult for people with dyslexia and similar concerns. Prefer short emphasized phrases.

fake

Missing faces get synthesized

If italic/oblique is unavailable, browsers may artificially slant glyphs. Use font-synthesis to turn that off when you only want real faces.

semantics

Style is not the same as meaning

Visual italic ≠ emphasis. For spoken stress or importance, use <em> (or <i> when appropriate), then style with CSS.

unsupported

left and right are not usable yet

The Fonts module defines those keywords for slant direction, but no major browser supports them. Stick to normal, italic, and oblique.

shorthand

font can overwrite style

The font shorthand resets font-style. Put font-style after the shorthand, or include the style in the shorthand.

Browser Support

font-style is a browser CSS property for choosing upright, italic, or oblique faces. Node.js, Deno, and Bun do not apply it.

✓ Baseline · Widely available

font-style

normal, italic, and oblique work in all modern browsers and Internet Explorer. oblique with an angle is supported in current engines.

100% Modern browser support
Google Chrome All
Full support
Mozilla Firefox All
Full support
Apple Safari All
Full support
Microsoft Edge All
Full support
Opera All
Full support
Samsung Internet All
Full support
Internet Explorer All (core values)
Full support
font-style Widely supported

Bottom line: Safe everywhere for normal / italic / oblique. Prefer fonts with true italic faces for best quality. It is not a runtime API.

Key Takeaways

  • Role: choose normal, italic, or oblique letterforms.
  • Italic vs oblique: designed italics vs slanted (often synthesized) faces.
  • Semantics: use <em> for meaning; use font-style for looks.
  • Initial value: normal. Inherited by default.

One line: font-style: italic; picks an italic face when the font provides one.

Frequently Asked Questions

It selects a normal (upright), italic, or oblique face from the font family. Italic uses a designed italic face when available; oblique is a slanted style.
The initial value is normal, which shows upright text.
Italic prefers a true italic design with reshaped letters. Oblique prefers a slanted face, or a slant of the regular face. If the requested style is missing, browsers often synthesize a slant.
Use the HTML em element for semantic emphasis. Use font-style when you only need a visual slant without changing meaning.
Yes. font-style: oblique 20deg requests a slant angle between -90deg and 90deg. If omitted, browsers often use about 14deg.
It is Baseline Widely available. normal, italic, and oblique work everywhere modern browsers run. oblique with an angle has broader support in recent engines. It is a browser CSS property, not a Node.js feature.

Next: font-variant

Explore small-caps and other typographic variant settings.

font-variant tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

10 people found this page helpful