Colors are very important to give a good look and feel to your website. You can specify colors on page level using <body> tag or you can set colors for individual tags using bgcolor attribute.

The <body> tag has following attributes which can be used to set different colors −

  • bgcolor − sets a color for the background of the page.

  • text − sets a color for the body text.

  • alink − sets a color for active links or selected links.

  • link − sets a color for linked text.

  • vlink − sets a color for visited links − that is, for linked text that you have already clicked on.


    HTML Color Coding Methods

    There are following three different methods to set colors in your web page −

    • Color names − You can specify color names directly like green, blue or red.

    • Hex codes − A six-digit code representing the amount of red, green, and blue that makes up the color.

    • Color decimal or percentage values − This value is specified using the rgb( ) property.

Example:


Output:

HTML Colors Example
Text in Red Color
Text in Green Color
Text in Red Color
Text in Green Color
Text in Red Color
Text in Green Color
Do you Know?
Progamming is what actually means ?

What is software development ?

How we categorized software development in different manner.

C Programming
C Plus Plus
Python
Java Development
Web Designing
Javascript
Mysql
Oracle
We cover all the programming concepts in various programming languages, this tutorials are very help full for bigener as well as Experience developer, for the ease of understanding we categorized programming in different manner likewise.