Tomato Orange DodgerBlue MediumSeaGreen Gray SlateBlue Violet LightGray HTML supports 140 standard color names. Background Color You can set the background color for HTML elements: Hello World Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Example

Hello World

Lorem ipsum...

Text Color You can set the color of text: Hello World Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Example

Hello World

Lorem ipsum...

Ut wisi enim...

Border Color You can set the color of borders: Hello World Hello World Hello World Example

Hello World

Hello World

Hello World

Color Values In HTML, colors can also be specified using RGB values, HEX values, HSL values, RGBA values, and HSLA values. The following three
elements have their background color set with RGB, HEX, and HSL values: rgb(255, 99, 71) #ff6347 hsl(9, 100%, 64%) The following two
elements have their background color set with RGBA and HSLA values, which add an Alpha channel to the color (here we have 50% transparency): rgba(255, 99, 71, 0.5) hsla(9, 100%, 64%, 0.5) Example

...

...

...

...

...

Exercise ? Do you remember any legal HTML color names? Which one of the following is a legal HTML color? Apple Banana Tomato Learn more about Color Values You will learn more about RGB, HEX and HSL in the next chapters. Video: HTML Colors Tutorial on YouTubeTutorial on YouTube Track your progress - it's free!