Color in HTML

About

In HTML, a color consists of:

  • three 8-bit numbers in the range 0..255, representing the red, green, and blue components of the color respectively, in the RGB color space.

Example

With the font element

<p><font color="fuchsia" >fuchsia color name</font></p>
<p><font color="#ff00ff"> fuchsia as rgb color</font></p>

Form

You can add a color value in a form.

Documentation / Reference





Discover More
Color names in the web (html, css, svg)

The web (HTML, CSS, SVG) shares the same set of color names. This article lists them.
How to add a color in a HTML input form?

This article shows you how to add a color value with an input control in a form. Output: Output: A color input's value is valid if the browser (user agent) can convert the user's input...



Share this page:
Follow us:
Task Runner