HTML BACKGROUND COLOR TAG - HTML TUTORIAL 8 STUDENTSBLOG100 - Anna University Multiple Choice Questions

HTML BACKGROUND COLOR TAG - HTML TUTORIAL 8 STUDENTSBLOG100


In a web page, we can set background color by using BGCOLOR tag in HTML. As the name denotes, this bgcolor tag is used to fill background color in the web page.

Syntax:
bgcolor="color name"

Example Program:
Output:
Hello Friends..This is BGCOLOR Lesson

  • In the above html program, we have specified background color using the bgcolor attribute. 
  • The color can be specified using color name inside double quotes or using the hexadecimal codes.
  • In hex code, first two values denotes red color, center two values denotes green color and last two values denotes blue color.That is based on RGB model.
  • Each pixel has 256 values.That is 0 - 255. 
  • FF Denotes 255.

Lesson 7  Previous | Main Page | Next  Lesson 9

No comments:

Post a Comment