|
|
The Online Promoters
HTML Tutorial
Chapter 5: 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:
Verdana
(<font size=+2 face="Verdana">Verdana</font>)
Arial
(<font size=+2 face="Arial">Arial</font>)
Helvectica
(<font size=+2 face="Helvetica">Helvetica</font>)
Impact
(<font size=+2 face="Impact">Impact</font>)
Comic Sans MS
(<font size=+2 face="Comic Sans MS">Comic Sans MS</font>)
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:
This is blue
(<font color="Blue">This is blue</font>)
This is green and in Impact Font
(<font face="Impact" color="Green">This is green and in Impact Font</font>)
This is red
(<font color="Red">This is red</font>)
Your Own HTML Page
Add the following to your HTML page ("home.html"): (the red text is what to add)
<html>
<head>
<title>My Home Page</title>
</head>
<body background="bgnd.gif">
<center><font color="Green"><h1>YOURNAME's Home Page</h1></font></center>
<hr>
This is the home page of <b>YOURNAME</b>.
<p>Type something about yourself here. Describe briefly who you are and what you do for a living. Remember to use bold and italic text, for emphasis.</p>
</body>
</html>
Save the text file as "home.html".
|
|