Phong Duong


currentcolor keyword in CSS

22-01-2021 | #css

currentcolor keyword represents the value of the color property. It could also take value from the inherited value of the color property.

In the example, the current color of <h1> element's color is not tomato. This is because the currentcolor keyword takes the value the from inherited value of div's color property. It is seagreen.

Share: TwitterFacebookLinkedInHacker News