Logo of aks.htmlplanet.com

Links
Play Intro
New Stuff
Home
Poems
Jokes
Quotes
Wallpapers
Learn HTML
-Getting Started
-What are tags ?
-Hex Codes
-Body Tag
-Font Tag
-Useful Tags
-Tables
-Adding Images
-Linking Pages
-Adding Sounds

Suggestion Book












DigiArc :: Owned By Aakash Ashvin Shah

 .:: Welcome to aks.htmlplanet.com !





 .:: Learn HTML > Font Tag ...


.:: Font tag is used to set the font color, font size or the type of font you want to use. Font tag can be used anywhere inside the body tag.

.:: Symbol

The start of the font tag is denoted as '< font >' and the end as '< /font >'.

.:: Attributes of Font tag

  • size :
  • This attribute is used to change the font size.
    For example :: < font size="3" > would change the size of the font to 3 pixels. The range of the font size is from '1' to '7'. The font size which you are reading is 2.
  • color :
  • This attribute is for giving color to the font used on the webpage.
    For example :: < font size="3" color="black" > OR < font size="3" color="#000000" >. '#000000' is a hex code; for more information see the 'Hex Codes' Chapter.
  • face :
  • This attribute is for choosing the type of the font you want to use.
    For example :: < font size="3" color="#000000" face="arial" >. This would set the font type to 'Arial' which would be displayed on the webpage.

    NOTE :: If the visitor of your website does not have the font which you have used, he will not be able to see that font type. The text instead would be displayed in the default font of that visitor's system. Hence, better use a most common, nice looking yet a clearly visible font.


Learn HTML > Font Tag







 .:: Buck Up ! You can do it !