ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

15-HTML Colors

HTML coloring systems are composed of numeric and hexadecimal values. Here are 16 generic color values that you can use in setting a background of your HTML document.

 

Example of string codes:

 

Black Gray Silver White
Yellow Lime Aqua Fuchsia
Red Green Blue Purple
Maroon Olive Navy Teal

 

Example of numeric [rgb] values

 

rgb(255,0,0) Red
rgb(0,255,0) Green
rgb(0,0,255) Blue
rgb(0,0,0) Black
rgb(255,255,255) White
rgb(120,120,120) Grey
rgb(240,40,120) Pink

At first, the hexadecimal system is complex and difficult to understand. Hexadecimal  system  are safe, more reliable  and widely compatible to all web browsers.

 

Hexadecimal consists of 6-digit numeric representation of a color and it contains three different components such as red, green, and blue. Red value represents the first two digits (00) , Green value represents the next two (44)  and the blue value represents last (88). These three values are mixed to form the final color shade.

 

Formula:

([firstdigit]* 16) + ([seconddigit]) = primary color value

Example:

bgcolor="#004488"
Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!