HTML Colors

Example

<!DOCTYPE html>
<html>
<body>

<h1 style=”background-color:MediumSeaGreen;”>MediumSeaGreen</h1>
<h1 style=”background-color:Orange;”>Orange</h1>
<h1 style=”background-color:DodgerBlue;”>DodgerBlue</h1>
<h1 style=”background-color:blue;”>blue</h1>
<h1 style=”background-color:Gray;”>Gray</h1>
<h1 style=”background-color:SlateBlue;”>SlateBlue</h1>
<h1 style=”background-color:skyblue;”>skyblue</h1>
<h1 style=”background-color:LightGray;”>LightGray</h1>

</body>
</html>

Output

MediumSeaGreen

Orange

DodgerBlue

blue

Gray

SlateBlue

skyblue

LightGray

Example

<!DOCTYPE html>
<html>
<body>

<h1 style=”background-color:Tomato;”>Tomato</h1>
<h1 style=”background-color:Orange;”>Orange</h1>
<h1 style=”background-color:DodgerBlue;”>DodgerBlue</h1>
<h1 style=”background-color:MediumSeaGreen;”>MediumSeaGreen</h1>
<h1 style=”background-color:red;”>red</h1>
<h1 style=”background-color:SlateBlue;”>SlateBlue</h1>
<h1 style=”background-color:Violet;”>Violet</h1>
<h1 style=”background-color:LightGray;”>LightGray</h1>

</body>
</html>

Output

Tomato

Orange

DodgerBlue

MediumSeaGreen

red

SlateBlue

Violet

LightGray

Updated: February 11, 2019 — 6:01 am
Java Script © 2019