-
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> -
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"> -
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} -
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>








