HTML Colors are used to decorate HTML elements or assign a specific color to specific element. Colors are of following types
Colors can be assigned to HTML elements by using color names like red, green, blue etc.
color:ColorName;
You can use color names to apply color to any html element.
For more colors visit CSS Colors
You can use any of above color name using CSS any where within an HTML document.
Colors can be assigned to HTML elements by using RGB values like R for red (255,0,0), G for green (0,255,0),and B for blue (0,0,255) so its known as RGB colors etc.
color:rgb(R,G,B);
You can use rgb colors to apply color to any html element.
For more colors visit CSS Colors
You can use any of above rgb color using CSS any where within an HTML document.
Colors can be assigned to HTML elements by using HEX values like red #FF0000, green #00FF00, and blue #0000FF. HEX values are six characters and can be shorten to three character hex values like red #F00, green #0F0, and blue #00F. You can write uppercase or lowercase hex color values.
color:#RRGGBB;
You can use hex colors to apply color to any html element.
For more colors visit CSS Colors
You can use any of above hex color using CSS any where within an HTML document.
Colors are basic part of designing and developement.
Open notepad or any other text editor, follow the following points.
save file with name task.html or task.htm and then open it using any browser and see results.
Don't forget colors are the basic need of designing and developement becuase they affects human nature and behaviour.