HTML - Font and Basefont
The <font> tag is used for modifying the type of a text, the size and the color. Use "size", "color" and "face" attributes to personalize your text and the <basefont> tag to set the color, size and the style of a whole text.
Mostly the "font" and "basefont" tags are not used much because is used CSS to establish a text`s attributes.
The Font Size
Set the size of your font. There are accepted values between 1 (the smallest) and 7(the biggest).The standard value of a text is 3.
<p> <font size="5">This is font size 5</font> </p> |
Display
This is font size 5 |
The font color
Set the color of the text
font color="#990000">This text is hexcolor #990000</font> <br /> |
| This text is hexcolor #990000 This text is red |
Font Face
Pick a letter style using the "facefont" tag. You can choose any font you have
installed, but choose the font with care because the user on your page can`t see
the font if he hasn`t got installed your font.He will see the default font meaning
TImes New Roman. The solution would be to choose many fonts who look the same.
<p> |
This paragraph has had its font formatted by the font tag! |
Basefont
With the help of the "basefont" tag you can establish the default value of the font in your web page.We recommend to specify a "basefont" in case you will use the font in HTML. What is next is an model.
<html> <body> <p>This paragraph has had its font...</p> <p>This paragraph has had its font...</p> |
| This paragraph has had its font formatted by the basefont tag! This paragraph has had its font formatted by the basefont tag! This paragraph has had its font formatted by the basefont tag! |
With all these, "basefont" is somehow exceeded. In the close future is possible that it won`t work with it anymore but with the help of CSS.
Attributes
| Attribute= | "Value" | Description |
| size= | "Num. Value 1-7" | Size of your text, 7 is biggest |
| color= | "rgb,name,or hexidecimal" | Change font color |
| face= | "name of font" | Change the font type |
The beginning "by the book"
<p> <font size="7" face="Georgia, Arial" color="maroon">C</font>ustomize your font to achieve a desired look. </p> |
Customize your font to achieve a desired look. |
