We have 140 color names defined in the HTML5 and CSS3 color specifications. 17 colors are from the HTML specification, 123 colors are from the CSS specification. The table below lists them all, along with their hexadecimal values. Note The 17 colors from the HTML specification are: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, orange, purple, red, silver, teal, white, and yellow. HTML Colors are of different kinds and categories.
HTML Color Names
Here are lists of the HTML5 and CSS3 color specification in an Alphabetical Order...
You can easily apply a background color to your webpage document by adding the HTML bgcolor attribute to the <body> element of your document. This attribute can accept a HEX value or colorname. Example: <body bgcolor="green">...
HTML colors can be applied to a text using the style attribute and the CSS color property, the colors can be HEX format (base-16 colors preceded by #), or RGB (Colors of indices 255, written in the rgb() function.
Applying Colors To Background
HTML colors can be applied to an element background using the style attribute and the CSS background-color property, the colors can be HEX format (base-16 colors preceded by #), or RGB (Colors of indices 255, written in the rgb() function.
What You Should Know at the End of This Lesson
You should able to apply an HTML Color to a text.
You should able to apply an HTML Color as an element background.
You should be able to tell your friend about this lesson!
We are still moving on to HTML Colors lesson in our next chapter.