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>

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.
What are HTML Input Elements?

An inputinput element of a form control that permits to define a scalar value (single value) inputFull list Ref Doc The type attribute defined: the default behavior the design of the element....



Share this page:
Follow us:
Task Runner