Padding Padding
Janet
Systems
 Register  Login 
Telephone  01628 566 178
Website Design, Hosting and Software Services
  Search 
Padding
corner Padding corner
Padding Padding
corner Padding corner
 HTML Articles

On our web page we can wrap a section of text in the <font> tag. This enables us to define the size of the text and the colour of the text. Some of the parameters associated with the <font> are given in the table below: 

Tag Options Description
size numeric(1,2,3) A numeric value is used to represent the size of the font. The sizes are proportional to one another, 4 being larger than 1.
size relative (+1) This enables a section of text to be made larger or smaller relative to the current fornt size. For example if the surrounding text has been set to size 2 then <font size="+1">bigger</font> creates a larger section.
size Fixed (10pt, 12pt, 9px) The font size is defined absolutely. Typically this is represented either in points or in pixels. Values ranging between 10 and 14 are most commonly used.
color The colour option is specified either as the RGB colour values, for example #ff0000 is red, or as one of the recognised named colours. A list of named colour values is to be found in this article.
face tahoma, arial, times This parameter is not globally supported. To specify the font face provide a comma separated list of fonts beginning with the most important one. When selecting fontts it is advisable to select those which are most commonly supported on computers.

Examples

<font color="#0000ff">Blue</font>Blue

<font color= #ff00ff"size="4">Magenta Size 4</font>Magenta Size 4

<font color="#0000ff" face= "tahoma,verdana">Blue</font>Blue

In this article I have covered the parameters associated with the HTML <font> tag. Further effects are possible using the CSS options, but that will have to wait for another article.

NAT November 2005


This article viewed: 1224 times Back

Copyright © 2004-2007 Janet Systems Ltd.

 Print   

DotNetNuke Website design and hosting from £15.00 per month. More...

Looking for a website design company in the Thames Valley, call us on 01628 566178

DotNetNuke Modules
DotNetNuke Modules availalble from Janet Systems

DotNetNuke Skins
DotNetNukeSkins.gif

from Janet Systems

Padding
Copyright 2002-2008 Janet Systems Ltd.   Terms Of Use  Privacy Statement Tuesday, May 13, 2008