eHow launches Android app: Get the best of eHow on the go.

How To

How to Change Color Font

Contributor
By Lysis
eHow Contributing Writer
(0 Ratings)

When creating a website, changing font color is a part of the design phase for each page. Font colors can be changed using CSS classes or directly changing the color in the HTML tag. Additionally, the color of text can be set in the body tag of the HTML web page. Regardless of the method used for a font color change, these colors are coded in hexadecimal settings.

Difficulty: Moderately Easy
Instructions
  1. Step 1

    Place the text on the web page. In this example, the text is placed in a <p> tag. This tag indicates a paragraph.
    <p>This is my first web page</p>

  2. Step 2

    Change the color of the font by including the hexadecimal code in the <body> tag of the web page. This method is useful for people who have a different font color for web pages. The example below changes the font color of the page using the <body> tag to white:
    <body text="#FFFFFF">

  3. Step 3

    Change the color of the font using direct styling. Although it's standard to use CSS files for styling font colors, the webmaster can change the font color using the "style" property in the HTML element. The code below changes the paragraph font color directly in the element:
    <p style="color: #FFFFFF">This is my first web page</p>
    This same code can also be used in the CSS stylesheet for the website. The syntax is slightly different. Below is an example of changing the font color in the CSS file instead of directly in the tag:
    p {color: #FFFFFF}

  4. Step 4

    Change the font color using the <font> tag. The font tag is an element that changes color, style, and size of text on a web page. Below is an example of changing the font color using the font tag:
    <font face="verdana" color="#FFFFFF">This text appears white.</font>

References

Post a Comment

Post a Comment

eHow Article: How to Change Color Font

  • 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 Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

Demand Media
eHow_eHow Technology and Electronics