How To

How to Italicize Text in HTML

Contributor
By eHow Contributing Writer
(4 Ratings)

In HTML text is italicized by giving the CSS property font-style a value of italic, or, more traditionally, enclosing it in the HTML I (or EM element.

Difficulty: Easy
Instructions

Things You'll Need:

  • Text of HTML editor

    Italicize Text Using CSS

  1. Step 1

    Find the text you want to italicize. If it is not already surrounded by an HTML element such as P, SPAN, or DIV, enclose it in a SPAN by placing an opening tag before it and a closing tag afterwards.

  2. Step 2

    Add the following STYLE attribute to the element surrounding the text to be italicized.
    STYLE="font-style: italic; "
    Alternatively, add a CLASS attribute to that element, specifying a class defined as being italicized with a declaration such as the following:
    .my-italicized-class { font-style: italic; }

  3. Step 3

    Type in the content that you want to italicize and selcet "Find Next." You should now see the matching content highlighted in the document.

  4. Italicize Text in HTML

  5. Step 1

    Find the text to be italicized.

  6. Step 2

    Place an opening tag before the text and a closing tag afterwards.

Post a Comment

Post a Comment
  • Have you done this? Click here to let us know.
I Did This

Related Ads

Tags
Internet
Virginia DeBolt,

Meet Virginia DeBolt eHow's Internet Expert.

Get Free Internet Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US

Demand Media
eHow_eHow Technology and Electronics