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?

  1. color
  2. current_color
  3. currentcolor
  4. 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;
}

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.