Home »
MCQs »
Advanced CSS MCQs
Which keyword is like a variable that holds the current value of the color property of an element?
16. Which keyword is like a variable that holds the current value of the color property of an element?
- color
- current_color
- currentcolor
- elementcolor
Answer: C) currentcolor
Explanation:
The currentcolor keyword is just like a variable that holds the current value of the color property of an element.
Example:
div.example1 {
color: #006969;
border: 2px solid currentcolor;
}