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.
Fundamentals
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.
Foundation
📝 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.
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.
Captions are supporting text. Italic plus a smaller size helps them read as metadata beneath the main content.
A11y
♿ 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.
Compatibility
🖥 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 ChromeAll versions · Desktop & Mobile
Full support
Mozilla FirefoxAll versions · Desktop & Mobile
Full support
Apple SafariAll versions · macOS & iOS
Full support
Microsoft EdgeAll versions
Full support
OperaAll modern versions
Full support
font-style property99% supported
Bottom line:font-style is universal. Choose fonts with true italic faces for the best typography.
Wrap Up
🎉 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.
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.