• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Working with Fonts > Setting Font Styles and Variants

Setting Font Styles and Variants

The font-style property takes the values of normal, italic, and oblique. An italic value specifies a font that is classified within the browser's font database as an italic font, while an oblique value specifies a font that is classified within the browser's font database as an oblique font. Generally, an italic font was created separately from its corresponding non-italic roman typeface, and an oblique font was more likely created by simply slanting the normal roman typeface. When specifying a font-style of italic, a browser should display an “italic” font within the specified font family, if available. If an italic font is not available, it should display an “oblique” font instead. For an example of specifying an italic font style, edit your page's H1 element so it matches what is shown here (see Figure 7.12):

<h1 style="font-style: italic">International Travel Planning Tips</h1>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint