HTML Code MiniChapter 8: Extended Fonts and Text Color
 

Extended Fonts...
The newest version of many browsers supports extended fonts, in which you can choose to have the document fonts be other than the normal one. This is accomplished by adding the FACE="font_name" attribute to the <FONT> tag. The most commonly supported fonts are Verdana, Arial, Helvetica, Impact, Comic Sans MS, and a few others. It is not recommended to make your page font dependent, because the older versions of many browsers don't yet support this feature.

Example of Extended Fonts...

<font size=+2 face="Verdana">Verdana</font>
Verdana
<font size=+2 face="Arial">Arial</font>
Arial
<font size=+2 face="Helvetica">Helvetica</font>
Helvetica
<font size=+2 face="Impact">Impact</font>
Impact
<font size=+2 face="Comic Sans MS">Comic Sans MS</font>
Comic Sans MS

Note: If you don't see one or more of the above fonts, then your browser probably doesn't support the extended fonts.
A word on fonts: Now that CSS (Cascading Style Sheets) is supported by almost all web browsers, you can often style a whole page with a font or style each section of a page with different fonts without using the <font> tag. CSS is definitely worth learning after you know the basics of HTML

Text Color...
You can change the color of the text by setting the COLOR="font_color" attribute in the <FONT> tag. The Color is usually set by using the hexadecimal system (#000000 black to #FFFFFF white) but can also be set in newer browsers by using the simple word of the color. (Red for Red, Blue for Blue, etc.)

Example of Text Color...

<font color="Blue">Hey I'm Blue!</font>
Hey I'm blue!
<font size=+2 face="Impact" color="Green">Hey I'm green and in Impact Font!</font>
Hey I'm green and in Impact Font!
<font color="Red">Hey I'm red!</font>
Hey I'm red!
 
Try it Yourself!
In the Box below, type the following HTML code, then click "Check it Out!" The HTML document you made will be displayed in your browser. You may wish to change the words within the tags just to try it out.

Try typing this:

<html>
<head><title>Fonts and Colors Are Cool</title>
</head>
<body>

<font color="Yellow" face="Arial">Hey I'm Yellow Text... Change my color!</font><br>
<font size=+2 color="purple">Hey I'm Purple Change My Color!</font><br>
This page Copyright &copy; Little Joe's Pages &amp; davesite.com.

</body>
</html>