Master CSS From Scratch

Clear, interactive, and structured CSS lessons designed for beginners.

Font Style

The font-style property is used to specify the style of text.

Common values include normal, italic, and oblique.

How Font Style Works

HTML Text
→
font-style
→
Styled Text

Example 1: Normal

The normal value displays text in its regular style.

CSS Code
p {
    font-style: normal;
}
Output

Welcome to CIIT Training Institute

Example 2: Italic

The italic value displays text in an italic style.

CSS Code
p {
    font-style: italic;
}
Output

Learn CSS at CIIT Training Institute

Example 3: Oblique

The oblique value displays text in a slanted style.

CSS Code
p {
    font-style: oblique;
}
Output

CIIT Training Institute

Example 4: Different Font Styles

Different elements can use different font styles.

CSS Code
.normal-text {
    font-style: normal;
}

.italic-text {
    font-style: italic;
}

.oblique-text {
    font-style: oblique;
}
Output

Normal Text - CIIT Training Institute

Italic Text - CIIT Training Institute

Oblique Text - CIIT Training Institute

Common Font Style Values

Value Effect
normal Displays text in normal style
italic Displays text in italic style
oblique Displays text in a slanted style

Simple Explanation

normal → Displays regular text.

italic → Displays slanted italic text.

oblique → Displays text in an oblique style.

Summary

The font-style property controls the style of text. The main values are normal, italic, and oblique.