Computing 28th 11
Computing 28th 11
HTML colours are used to define the colour of text, background, borders,
and other elements on a web page. There are three main ways to
represent colours in HTML:
Examples:
o #FF0000 (red)
o #00FF00 (green)
o #0000FF (blue)
o #FFFF00 (yellow)
o #000000 (black)
The format is RGB (R, G, B), where R, G, and B represent the red,
green, and blue components, respectively.
Examples:
o rgb(255, 0, 0) (red)
o rgb(0, 0, 0) (black)