How To

How to Change Font Size Using HTML Programming

Contributor
By Angela Wells
eHow Contributing Writer
(0 Ratings)

HTML (hypertext markup language) is a computer language used to create Web pages. Websites and pages are written in HTML code. Whether you are setting up a personal Web page or a business Web page, learning HTML code can be very beneficial. Knowing how to use the codes can help you manipulate your page settings. HTML documents contain plain text and have the extension .html or .htm. You can change the size of the font that is displayed in your page. Some visitors to your site may find that larger font makes your page easier to read.

Difficulty: Easy
Instructions
  1. Step 1

    Start your word processor or text editor that you will use to create your Web page. Locate the page on your PC that you will be editing. Position your cursor between the brackets for the tag of the font that you will be changing the size of.

  2. Step 2

    Type "font-size:" and then press the space bar. Type a font size in pixels, for example: 15pt or 20px. Instead of typing a font size in pixels, you can indicate a descriptive font size, for example, xx-small, x-small, small, medium, large, x-large or xx-large.

  3. Step 3

    Verify that your text looks like similar to the following:<STYLE>P{font-size: 16pt}</STYLE></HEAD>

  4. Step 4

    Open a new Web browser to verify that your page displays your font size correctly. To open your web page in the browser, click the "File" button along the menu bar, and click "Open." The Open dialog box appears. Click "Browse" to locate your Web page in the location that it is saved. Choose the page that you wish to open. Your page will appear in the browser.

Tips & Warnings
  • You should display your web page in several browsers to see how each browser will display it.

Post a Comment

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

Related Ads

Tags
Computers
Alexia Petrakos,

Meet Alexia Petrakos eHow's Computers Expert.

Get Free Computers Newsletters

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

eHow Computers
eHow_eHow Technology and Electronics