HTML Dog
Skip to navigation

CSS Value: inherit

Explicit inheritance keyword. The computed value of the equivalent property on an element’s parent.

Example


p { color: red }
h1 { color: lime }
ul { color: yellow }
a { color: inherit }
/* the color of links in paragraphs will be red, in headings will be lime, and in lists will be yellow */