How to Change a Font Without Changing Italics

HTML tags format the text on your webpages. If you want to change a font and leave the italicized text, you must change the "font" tag and leave the "italicized" tag as is. This allows you to change font style while keeping italicized characters. You can change the font style in your HTML file using the Windows Notepad text editor, which is included with each version of Windows.

Instructions

    • 1

      Right-click the HTML file you want to edit. Click "Open With" in the pop-up context menu. Double-click "Notepad" to open the file's code in your text editor.

    • 2

      Scroll down to the section of the page that contains the content you want to edit. All content for an HTML file is located between the opening "<body>" and closing "</body>" tags.

    • 3

      Add the font tag to your content. The italicize tag is the "<i>" tag. Your italicized text is surrounded by the opening and closing "<i>" and "</i>" tags. To change the font and leave the italicized format, you must place the opening font tag directly in front of the "<i>" tag and the closing font tag directly after the "</i>" tag. The following code shows you how to change the font:

      <font face="verdana" color="blue"><i>formatted text</i></font>

      The "face" property sets the font style, and the "color" property sets the color. Change these values to your own properties.

    • 4

      Hold the "Alt" key on your keyboard, then press the "S" key simultaneously. The changes to the HTML file are saved.

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured