CSS font-style Property

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 4 Examples
Typography

What You’ll Learn

The font-style property controls whether text appears upright, italic, or oblique — a simple way to add emphasis and visual variety.

01

normal

Upright text.

02

italic

Designed slant.

03

oblique

Slanted regular.

04

Emphasis

Highlight words.

05

Quotes

Blockquotes.

06

Captions

Image labels.

Introduction

The font-style property in CSS is used to specify the style of the font for an element. This property allows you to make text italic, oblique, or normal, providing a way to emphasize or differentiate text content within your web pages.

It's a fundamental property for styling text in web design. You will see it on quotes, captions, emphasized phrases, and anywhere you want text to stand apart from surrounding copy.

Definition and Usage

Apply font-style: italic when you want the dedicated italic design from a font family. Use oblique when you need a slanted look and the font may not include a separate italic face. Reset styling with normal to return text to upright form.

💡
Beginner Tip

The browser default for <em> and <i> is often italic. You can override that with font-style: normal if you use those elements for other reasons.

📝 Syntax

The syntax for the font-style property is simple and can be applied to any text element:

syntax.css
element {
  font-style: value;
}

Here, value can be one of the predefined keywords: normal, italic, or oblique.

Basic Example

font-style-basic.css
.quote {
  font-style: italic;
}
font-style: normal; font-style: italic; font-style: oblique;

Default Value

The default value of the font-style property is normal. If no font-style is specified, the text appears in its normal, upright form.

Syntax Rules

  • Accepts the keywords normal, italic, and oblique.
  • Modern CSS also allows oblique with an angle, such as oblique 15deg, on supporting browsers.
  • The property is inherited — child elements receive the parent's font style unless overridden.
  • Works as part of the font shorthand when included in the declaration.
  • Best visual results come from fonts that include true italic and oblique faces.

⚡ Quick Reference

QuestionAnswer
Initial valuenormal
Applies toAll elements
InheritedYes
Common emphasis valueitalic
Reset italic stylingfont-style: normal;

💎 Property Values

ValueDescription
normalThe text is shown in a normal, upright font style
italicThe text is shown in an italic font style using the font's italic face when available
obliqueThe text is shown in an oblique font style, which is a slanted version of the normal font

italic vs oblique

StyleHow it worksBest for
italicUses a separately designed italic typefaceQuotes, emphasis, elegant typography
obliqueSlants the regular font (or uses an oblique face)Quick slant when italic face is missing

👀 Live Preview

The same sentence with normal, italic, and oblique styles:

font-style: normal; Typography helps readers notice important details.
font-style: italic; Typography helps readers notice important details.
font-style: oblique; Typography helps readers notice important details.

Examples Gallery

Apply different font styles to paragraphs — then explore blockquotes, italic vs oblique, and caption styling.

🔢 Core Values

Start with the reference example — normal, italic, and oblique on separate paragraphs.

Example 1 — normal, italic, and oblique

Apply the three keyword values to demonstrate each font style.

font-style-keywords.css
.normal { font-style: normal; }
.italic { font-style: italic; }
.oblique { font-style: oblique; }
Try It Yourself

How It Works

Each class sets a different style keyword. The browser selects the matching font face or synthesizes a slant when needed.

Example 2 — Italic Blockquote

Style a quotation in italic to distinguish it from body text.

font-style-quote.css
blockquote {
  font-family: Georgia, serif;
  font-style: italic;
  border-left: 4px solid #cbd5e1;
  padding-left: 1rem;
  color: #475569;
}
Try It Yourself

How It Works

Italic styling signals quoted or secondary content without changing the HTML structure beyond a semantic blockquote.

📈 Comparisons & UI

See italic vs oblique side by side and style figure captions.

Example 3 — italic vs oblique on the Same Font

Compare how italic and oblique render with an identical font family and size.

font-style-compare.css
.italic-text { font-style: italic; }
.oblique-text { font-style: oblique; }
Try It Yourself

How It Works

With a full font family, italic often looks smoother because letter shapes are redesigned. Oblique may look similar or slightly more mechanical depending on the font.

Example 4 — Italic Figure Caption

Use italic for image captions while keeping the heading upright.

font-style-caption.css
figcaption {
  font-size: 0.875rem;
  font-style: italic;
  color: #64748b;
  margin-top: 0.5rem;
}
Try It Yourself

How It Works

Captions are supporting text. Italic plus a smaller size helps them read as metadata beneath the main content.

♿ Accessibility

  • Use semantic HTML for meaning — prefer <em> for emphasis and <cite> for citations when appropriate.
  • Do not rely on italic alone to convey critical information; combine with wording or icons when needed.
  • Keep italic body text readable — long italic paragraphs can be harder to read for some users.
  • Ensure sufficient contrast for italic captions and quotes, not just upright text.
  • Screen readers ignore font-style — meaning must come from content and markup, not CSS alone.

🧠 How font-style Works

1

You set a style keyword

Choose normal, italic, or oblique.

Declaration
2

Browser selects a face

It looks for an italic or oblique variant in the active font family.

Font matching
3

Text renders slanted or upright

If no matching face exists, the browser may synthesize a slanted style for oblique.

Rendering
=

Visual emphasis

Text stands out through slanted styling while keeping the same font family and size.

🖥 Browser Compatibility

The font-style property is supported in all modern browsers, including Chrome, Firefox, Safari, Edge, and Opera. It is a well-established CSS property and can be reliably used across browsers and devices.

Baseline · Universal support

font-style everywhere

normal, italic, and oblique work in every major browser, including legacy environments.

99% Universal support
Google Chrome All versions · Desktop & Mobile
Full support
Mozilla Firefox All versions · Desktop & Mobile
Full support
Apple Safari All versions · macOS & iOS
Full support
Microsoft Edge All versions
Full support
Opera All modern versions
Full support
font-style property 99% supported

Bottom line: font-style is universal. Choose fonts with true italic faces for the best typography.

🎉 Conclusion

The font-style property is an essential tool for web developers to style text and enhance the readability and aesthetic appeal of their content. By using font-style, you can create emphasis and distinguish different sections of text in your web pages.

Experiment with the different values of this property to see how it can improve the look and feel of your text content. Pair italic styling with semantic HTML when the slant carries meaning, not just decoration.

💡 Best Practices

✅ Do

  • Use italic for quotes and captions
  • Pick fonts with real italic faces
  • Use <em> for semantic emphasis
  • Reset with normal when needed
  • Keep long body copy upright for readability

❌ Don’t

  • Italicize entire long articles
  • Rely on slant alone for important warnings
  • Assume italic and oblique always look different
  • Forget caption contrast when using italic
  • Override user styles without good reason

Key Takeaways

Knowledge Unlocked

Five things to remember about font-style

Use these points when styling slanted text.

5
Core concepts
normal 02

Default upright

normal keyword.

Default
italic 03

Designed italic

Separate face.

Best practice
oblique 04

Slanted regular

Mechanical slant.

Alternative
🔁 05

Inherited

Children inherit.

Cascade

❓ Frequently Asked Questions

The font-style property sets whether text appears upright (normal), in a designed italic face (italic), or in a slanted version of the regular face (oblique).
The default value is normal, which displays text in its standard upright form.
Italic uses a separate font design with adjusted letter shapes. Oblique slants the normal font mechanically. If no italic face exists, browsers often synthesize oblique from the regular font.
Use the em element for semantic emphasis in content; it typically renders as italic by default. Use font-style in CSS when you need visual styling without changing meaning, such as captions or quotes.
The browser may fake a slanted style using oblique synthesis, or the text may look unchanged. For best results, choose fonts that include true italic faces.

Practice in the Live Editor

Open the HTML editor, switch between normal, italic, and oblique, and see how each style changes your text.

HTML Editor →

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.

5 people found this page helpful