F&M Home  | About the College  | Academics  | Admission  | People & Services  | Student Life
ATSFranklin & Marshall College
About ATS  |   Faculty Support  |   Student Support  |   Resources  |   Events   |  Facilities
ATS Home
Resources
Learning Materials
Software Tools
Tech News
Bookmarks
Clip Media

 

Formatting Text: Font Tags

Prev | Next | HTML Basics
print:

Font Tags:

One way to control the size, typeface, and color of text in a web page is to use the <FONT> tag. As you can see from the specific tags, the FONT tag takes attributes that define the size, type, and color of the text. The FONT tag is a container tag (consists of a beginning and ending tag).

NOTE: While the <FONT> offers an easy way to alter text attributes, it does have some disadvantages. HTML "purists" (i.e., designers who follow good HTML practice) prefer to use Cascading Style Sheets (CSS).

Font Size

<FONT SIZE=number> . . . </FONT>
Example: <FONT SIZE="-2">smaller text</FONT>
Example: <FONT SIZE="2">bigger text</FONT>

Font Type

<FONT FACE=fontname> . . . </FONT>
Example: <FONT FACE="Helvetica">my website</FONT>

Font Color

<FONT COLOR=color> . . . </FONT>
Example: <FONT COLOR="red">happy valentine's day</FONT>

The value of the COLOR attribute can be one of 140 preset color names, or it can be the numeric value for any color you choose.

Combining Styles

Example: <FONT SIZE="5" FACE="Times" COLOR="green">And it looks like this!</FONT>

And it looks like this!

Prev | Next | HTML Basics
print:


 

Locations of visitors to this page

Search within Resources or across the entire site.

 
 Search within Resources only.

Site Map

 

Copyright 2008 Franklin & Marshall College