Thursday, August 25, 2011

How to change HTML font

Font -: Font is Inline-level tag  because it only use inside paragraph not outside  of paragraph.
To change font you can use font tag.
for eg-: 
<html >
<head>
  <title>Font Tag</title>
</head>

<body bgcolor="#FFFFFF">

  <p><font face="x-verdana, x-helvetica, sans-serif" >
  Are you using the default font for your browser? If you're like most
  people you didn't know that you could change it. Well, that's okay, I
  can change it for you!
  </font></p>

</body>
</html>

(Note- I can use  three font in above example it mean browser can take automatic one of these if other two are not present.) Some more font you can also use are-: arial , serif , monospace  , helvetica  etc. 
Preformatted Text Example

Output Font Tag
Are you using the default font for your browser? If you're like most people you didn't know that you could change it. Well, that's okay, I can change it for you!

No comments:

Post a Comment