HTML Colors
HTML Colors
HTML colors are specified with predefined color names, or with RGB, HEX, HSL, RGBA, or HSLA values.
In HTML, a color can be specified by using a color name:
Tomato
Orange
DodgerBlue
Example
<h1 style="background-color:DodgerBlue;">Hello World</h1> <p style="background-color:Tomato;">Lorem ipsum...</p>
Click on the "Try it Yourself" button to see how it works.
Try it Yourself »