Holla Tech-Learn

HTML Colors
!

HTML colors are expressed as hexadecimal values.
  
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F 

NOTE:
As you can see, there are 16 values there, 0 through F. Zero represents the lowest value, and F represents the highest.

HTML Color Model
 

Colors are displayed in combinations of red, green, and blue light (RGB).

Hex values are written using the hashtag symbol (#), followed by either three or six hex characters.
As shown in the picture below, the circles overlap, forming new colors:

Holla Tech - Learn HTML

 

NOTE!
RGB color values are supported in all browsers.

Color Values
 

All of the possible red, green, and blue combinations potentially number over 16 million.

Here are only a few of them:

Holla Tech - Learn HTML

 

We can mix the colors to form additional colors:
Orange and red mix:

Holla Tech - Learn HTML

 

NOTE!
Hexadecimal color values are supported in all browsers. 

Background and Font Colors
 

The bgcolor attribute can be used to change the web page’s background color.

This example would produce a dark blue background with a white headline:

<html>
   <head>
      <title>first page</title> 
   </head>
   <body bgcolor=#000099>
       <h1>
        <font color=#FFFFFF> White headline </font>
       </h1>
   </body>
</html>

 

Holla Tech - Learn HTML

 

NOTE!
The color attribute specifies the color of the text inside a element.

 

BACK NEXT

CLICK ON THE BUTTON BELOW TO GO TO THE HTML MAIN COURSE PAGE. 

HTML MAIN COURSE PAGE

 


© License: All Rights Reserved 


CONTACT HOLLA TECH – LEARN SUPPORT