Challenge - 5 Problems
Color Name Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📝 Syntax
intermediate2:00remaining
What color will the text be?
Given the CSS rule below, what color will the text inside the paragraph appear as in a modern browser?
CSS
p { color: navy; }Attempts:
2 left
💡 Hint
Think about the common color name 'navy' in CSS.
✗ Incorrect
The color name 'navy' in CSS represents a dark blue color. It is a standard named color supported by all modern browsers.
❓ rendering
intermediate2:00remaining
Which color name will make the background yellow?
You want to set the background color of a div to yellow using a CSS color name. Which option will do this correctly?
CSS
div { background-color: ???; }Attempts:
2 left
💡 Hint
Look for the exact CSS color name for pure yellow.
✗ Incorrect
The CSS color name 'yellow' sets the background to pure yellow. 'gold' and 'lightyellow' are different shades, and 'lemon' is not a valid CSS color name.
❓ selector
advanced2:00remaining
Which CSS selector applies a red color to all
elements?
You want all
headings to have red text using a CSS color name. Which CSS rule below is correct?
Attempts:
2 left
💡 Hint
Remember how to select elements by tag name in CSS.
✗ Incorrect
The selector 'h1' targets all
elements. Setting 'color: red;' changes the text color to red. Options A and D select classes or IDs, not elements.
❓ accessibility
advanced2:00remaining
Which color name choice improves text readability for visually impaired users?
You want to choose a text color name that ensures good contrast on a white background for better accessibility. Which color name is best?
Attempts:
2 left
💡 Hint
Think about which color contrasts most strongly with white.
✗ Incorrect
Black text on white background provides the highest contrast, making it easiest to read for most users, including those with visual impairments.
🧠 Conceptual
expert2:00remaining
How many standard CSS color names are there?
According to the CSS Color Module Level 4 specification, how many standard color names are defined for use in CSS?
Attempts:
2 left
💡 Hint
Think about the named colors inherited from HTML and extended in CSS.
✗ Incorrect
CSS defines 140 standard color names, including basic colors and extended shades like 'lightblue' and 'darkolivegreen'.