|This week in Web Developer Tips.
Typeface and the <FONT> Tag Attributes
As this is soon to be deprecated I would only learn the font information purely as reference.
This is one you should really know about. It works this way, select and specify a typeface or a series of typefaces you want to use with the FACE attribute of the <FONT> tag. If the person viewing your page has the selected and specified typeface on their computer system, their browsers will load them in the order you have selected. If the person viewing your site doesn't have the typeface you have selected, then the viewers browser will use a default typeface. Example, you may choose something like this:
This will force the Arial typeface or Geneva, Helvetica and Arial typefaces to load first. Always try and use a common typeface that appears on most computer systems, by doing so you will know what your page will look like to the majority of your viewers.
Attention: The FACE attribute of the <FONT>
tag has not yet been declared an official part of the HTML
3.2 Specifications. Even though it is supported by browsers 3.0
and higher, this could change in the future.
I prefer the <FONT> </FONT> tags to the heading <H1> </H1> tags, by using the <FONT> </FONT> tags, you will have more control over the text in your HTML documents. One major advantage to using the <FONT> </FONT> tags, is you can change the font size of your text without the text being forced to a new line.
You can use <font> tag a number of ways in an HTML document, but some codes produce the same results. Such as:
<font SIZE="+2"> Test </font> = Test
Changing font sizes in the same line:
TRY THIS IT'S FUN
Changing colors using RGB in hexadecimal. The hexadecimal values represent
the color your text will be.
Colored text and back grounds are now easier because in most newer
web browsers you can specify a color name in place of the hexadecimal
values. I believe Netscape supports the most with 140 colors.
In this section we will use all of the font attributes we have covered
including the face attribute from the top of this page: