Coding Fun Html HTML COLORS EPISODE 6

HTML COLORS EPISODE 6





HTML colors are specified using predefined color names, or RGB, HEX, HSL, RGBA, HSLA values.
RGB Value
In HTML, a color can be specified as an RGB value, using this formula:

rgb(red, green, blue)

Each parameter (red, green, and blue) defines the intensity of the color between 0 and 255.

For example, rgb(255, 0, 0) is displayed as red, because red is set to its highest value (255) and the others are set to 0.

To display black, set all color parameters to 0, like this: rgb(0, 0, 0).

To…

Tags: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *