2 of 313 menu

The font-style property

The font-style property sets an italic or oblique text.

Syntax

selector { font-style: italic | oblique | normal; }

Values

Value Description
italic Makes a text italic.
oblique Sloped text. Unlike italic, which imitates handwriting, oblique is normal text where the letters are sloped to the side.
normal Cancels italics or slope. Usually necessary if you need to cancel italics for a certain section of a text (for example, all paragraphs are italicized, but this one is not).

Default value: normal.

Example . italic value

Now the text will become italic:

<p> Lorem ipsum dolor sit amet. </p> p { font-style: italic; }

:

Example . oblique value

The text will now become sloped (depending on the browser, it may be indistinguishable from italic):

<p> Lorem ipsum dolor sit amet. </p> p { font-style: oblique; }

:

byenru