This Season
 

How to Italicize Text in HTML

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.

Related Searches:
    Difficulty:
    Easy

    Instructions

    Things You'll Need

    • Text of HTML editor
    1. Italicize Text Using CSS

      • 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

        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

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

      Italicize Text in HTML

      • 1

        Find the text to be italicized.

      • 2

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

    Related Searches

    Read Next:

    Comments

    You May Also Like

    Follow eHow

    Related Ads