0
0
CSSmarkup~5 mins

Color names in CSS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a CSS color name?
A CSS color name is a predefined word that represents a specific color in CSS, like red, blue, or green. It lets you set colors without using codes.
Click to reveal answer
beginner
Name three common CSS color names.
Three common CSS color names are black, white, and yellow. These are easy to remember and use.
Click to reveal answer
beginner
How do you use a color name in CSS to change text color?
You use the color property with a color name. For example:
p { color: blue; }
This changes paragraph text to blue.
Click to reveal answer
beginner
Are CSS color names case sensitive?
No, CSS color names are not case sensitive. Red, red, and RED all work the same.
Click to reveal answer
beginner
Why might you choose a color name over a hex code?
Color names are easier to remember and type, especially for simple colors. Hex codes give more color choices but can be harder to read.
Click to reveal answer
Which of these is a valid CSS color name?
Ablue
B#blue
C123blue
Dblu3
What CSS property changes the text color?
Abackground-color
Bcolor
Cfont-color
Dtext-color
Are CSS color names case sensitive?
AOnly first letter matters
BYes, always uppercase
CYes, always lowercase
DNo, case does not matter
Which color name will make text red?
Agreen
Bblue
Cred
Dyellow
Why use color names instead of hex codes?
AThey are easier to remember
BThey offer more colors
CThey are faster to load
DThey are required in CSS
Explain how to use a CSS color name to change the background color of a webpage.
Think about the CSS property that controls background color.
You got /3 concepts.
    List some advantages and disadvantages of using CSS color names compared to hex codes.
    Consider simplicity versus variety.
    You got /4 concepts.