Some colours can be specified by name, e.g., background-color: red;
background-color: red;
Note that the color name is not enclosed in quotes, i.e., it is red and not 'red'.
red
'red'
Select named colours, some of which are used in the starter project, include:
darkslategray
gold
goldenrod
hotpink
lightcyan
lightgray
lightgreen
mediumvioletred
skyblue
white
whitesmoke
yellowgreen
A full list of named colours can be found in the MDN Web Docs References - <named-color> (External link)
MDN Web Docs References - rgb()
rgb()
rgb( R, G, B)
R
G
B
number
0%
255
rgb(31 120 50)
percentage
0
100%
rgb(30% 20% 50%)
none
There was an error while loading. Please reload this page.