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.jpg
image2.jpg
image3.jpg
image4.jpg
image6.jpg
image7.jpg
 
Basic Example
  1. <!DOCTYPE html>  
  2. <html>  
  3. <head>  
  4.     <title>color name</title>  
  5.     <style>  
  6.          
  7.     </style>  
  8. </head>  
  9. <body bgcolor="BlueViolet">  
  10. </body>  
  11. </html> 
Output
 
image5.jpg