I'm trying to learn css and I came by something I don't understand.
So I have this line of code in html:
<ul class="weblist">
<li>Coffee Brur</li>
<li>Taco Finder</li>
<li>CSS Selector Finder</li>
<li>HTML Formatter</li>
</ul>
And this line in css file:
.weblist ul {
color: red;
}
And I wonder why it doesn't do anything. From what I get, it should take all the descendants of the unordered
list with the weblist
class, and apply them the red color, but it does nothing. I would like it to make all the list elements of this particular unordered
list to appear red.