Welcome to Our Free Tutorial!

HTML Colors

In HTML Colors added using the style attributes. You should specify a color name (for Exm: blue, white, green, yellow etc.), or a hexadecimal values are (example:#0000ff,#FFFF66, #FF9933) or an RGB value(example: rgb(0,0,255)).


Foreground Color

To add color in HTML element, you use style="color:{color value}", where color value is color name.For Example:
<h3 style="color:blue">AOneStudy Tutorial </h3>

Result: Result

AOneStudy Tutorial

HTML Background Color

To add a background color in HTML element you use style="background-color:{color value}",
where {color value} is the value of the color.
For example:
<h1 style="background-color:blue">AOneStudy Tutorial </h1>


AOneStudy HTML Colors

HTML Border Color

To add a border color in HTML element, you use style="border:{width} {color} {style}", where {width} specify width of the border, {color} specify the color of the border, and {style} is the style of the border. For example:
<h3 style="border:1px blue solid;">AOne HTML Colors </h3>


AOne HTML Colors

Color Names

The Most Easy and common method for specifying colors are by using color name or the hexadecimal value. Although the color name is easier to remember, but the hexadecimal values and RGB values provide more color.
Hexadecimal color values are combination of numbers and letter. The number start for 0-9 and the letters start from A to F. When we using Hexadecimal color values in your HTML/CSS, you should specify the value with a hash (#).
There are 16 colors name (as specified in the HTML 4.0)The color chart below shows the color, color name and Hexadecimal Value.
More Color