HOME    articles    tutorials    tool directory    about

Free Email
META Tag Generator



Commonly Used Text Tags (continued)

Controlling Text Style and Appearance
The <FONT> tag lets you control the size, face, and color of specific words or phrases. The three most commonly used attributes are (surprise, surprise): size, face, and color. Let's start with size. Font size can be specified as either a specific value (1-6) or an incremental value (+1 through +6 and -1 through -6). The default font size is 3. So if you do this:

<FONT size="+2">This text is two sizes larger.</FONT >

you increase the font size two steps. Note that the <FONT> tag requires a closing </FONT> tag.

The face attribute specifies which typeface to use. It looks like this:

<FONT face = "Arial">This text appears in the Arial Typeface</FONT>

The color attribute works similarly:

<FONT color = "Yellow">This text appears in yellow.</FONT>

The value for color can be specified using its name or its hexadecimal value (for example, #FFFF00 for yellow). If you use the hexadecimal value, make sure to stick a pound sign (#) at the beginning. These color values can be used with any tag that has a color attribute, not just the <FONT> tag. There are 140 color names available. A full list is included in the Appendix of the Cheap Web Tricks book.

When a tag has multiple attributes, like the <FONT> tag does, you can combine them into one tag, like this:

<FONT face="Arial" color="black" size="+3">This text is in Arial, the color black, and size +3 </FONT>

previous pagenext page


HOME    articles    tutorials    tool directory    about

(c) copyright 2000-2010 Anventure.  All Rights Reserved.
privacy policy