Learn C language

Easy to learn C language tutorials

Learn C++ language

Easy to learn C++ language tutorials

Learn Core Java language

Easy to learn Java language tutorials

Learn HTML

Easy to learn HTML tutorials

Learn CSS

Easy to learn CSS tutorials

Learn ASP.NET

Easy to learn ASP.NET tutorials

Showing posts with label HTML Change Colors. Show all posts
Showing posts with label HTML Change Colors. Show all posts

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.