What color is the <p> tag’s text?
<p class="hello">Hello</p>
<style>
body { color: red; }
p { color: green; }
.hello { color: unset; }
</style>
Thanks to Wes Bos, the inventor of the Web Browser, for the I literally copy/pasted his tweet inspiration behind this one.
What color is the <p> tag’s text?
<p class="hello">Hello</p>
<style>
body { color: red; }
p { color: green; }
.hello { color: unset; }
</style>
The answer is red since unset “unsets” the style of the p tag, so it inherits from its parent – body.