Monday, August 5, 2013

[Part-8] HTML : Font Tag

If you have not read my previous posts of HTML then read it for better understating of today's HTML post.


In today's post I will tell you how to change the text font, size, color, etc.

Just follow the some very simple and easy steps to do this :-


  • Open notepad or notepad++.
  • Write or copy and paste the below given HTML code.
  • Then save as anyname.html.
  • Now open the saved file in browser.
  • You notice that the text font, size, color and background color are changed.
  • To change all of this thing we use <font></font> and also some attributes of it.
  • The attribute we use are size="50px" color="darkred" font face="cooper black".
  • You can change values of  size, font face and color.
  • You have also notice that background color is changed.
  • This is done by using attribute with body.
  • Attribute used with body is bgcolor="lightgreen".
  • If you want to give any other color to the background then just change value "bgcolor" with other color.
  • You have seen that all the matter is in center.
  • This is done by using <center></center>.
  •  When you write or place anything between <center></center> it comes in the center.
HTML Code :-


Output :-



For better understanding see the below video :-





If you have any doubt just post in the comment box.

For more updates like us on Facebook.




0 comments:

Post a Comment