Color Names

  • Direct color names can be used to specify colors for different HTML parts
  • Example color names are white, black, red, green, blue, yellow, brown, gray, darkgray, darkred, darkgreen, lightred, light green, .. etc.
  • Specifying a color for an HTML Tag can be done through using the style tag.


<!doctype html>   
    <p style="color: gray">
    Any color whatever it be, is a  combination of three colors:
</p> <ul> <li style="color: red">Red</li> <li style="color: green">Green</li> <li style="color: blue">Blue</li> </ul> </body> </html>

The result will be: