Color Name in HTML5

Introduction

Today you will learn about color names in HTML5.

You can define 147 color names and hexadecimal values also, in HTML and CSS, out of which 17 colors are standard colors. 

Tip: The 17 standard colors are: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, orange, purple, red, silver, teal, white, and yellow.

All browsers support these 147 colors.

Browser Support

Most browsers that are available today.

You can see all 147 colors in the following list:

image.jpgimage2.jpgimage3.jpgimage4.jpgimage6.jpgimage7.jpg

Basic Example

<!DOCTYPE html>
<
html>
<
head>
    <title>color name</title
>
    <style
>
       
    </style
>

</
head>
<
body bgcolor="BlueViolet">
</
body>
</
html>

Output

image5.jpg