HTML
|
JavaScript
Alignment
Basics
Character Codes
Colors
CSS
DIVS
Forms
Frames
Links
Lists and Bullets
Meta Tags
Multimedia
Pictures
Spacing
Tables
Text
Adding Text
Align Text
Marquee
Text Color
Text Font
Text Headers
Text Links
Text Size
Text Spacing
Text Styles
Text Font
235
Font
Description
To change the font, you need to put in the Font tag which looks like <FONT FACE="fontname">. The starting tag is <FONT FACE="fontname"> and the closing tag is </FONT>. You will be replacing the text "fontname" in the starting tag with the name of the font you wish to use. Here is an example using the font tag. This example is using the "Courier" font.
Code
<FONT FACE="Courier">
Hello World!
</FONT>
Output
Hello World!
Practice
<FONT FACE="Courier"> Hello World! </FONT>
Additional Fonts
Description
If the font you put on your web page isn't on someone's computer, that means that when they view it, the font will not show up and it will be the default font, Arial. However, you can put more than one font on a font tag, so if one doesn't work it will try the other one. It's the same tag as before, except with two fontnames and a comma between them. In the example below, it first will try to use a font called "Markings" and if it can't find that it will try to use a font called "Times New Roman".
Code
<FONT FACE="Markings, Times New Roman">
Hello World!
</FONT>
Output
Hello World!
Practice
<FONT FACE="Markings, Times New Roman"> Hello World! </FONT>
Advertisements