The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's Style Sheets Reference

| Index | Current Category: Fonts |
| Previous Style: font-stretch | Next Style: font-variant |


font-style

Applies various effects to the text.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS1 and later 3.0 and later 4.0 and later
Notes:
  • This style replaces the HTML <I> tag.
Possible Values:
italic
Formats text as italic.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS1 and later 3.0 and later 4.0 and later

normal
Does not apply any text effect.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS1 and later 3.0 and later 4.0 and later

oblique
Formats text as oblique.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS1 and later 4.0 and later Not supported

Notes:
  • The browser usually just formats this as italic.

Example:
You can format text with <SPAN STYLE="font-style: italic">italics</SPAN>.
How It Looks:
You can format text with italics.

| Index | Current Category: Fonts |
| Previous Style: font-stretch | Next Style: font-variant |