Yeah. That's right.
If you would do p.yourclass it would look for a p tag with this class, but if you had a space between p .yourclass it would look for an element with class yourclass inside a paragraph
i'm working through a css course, and for some reason i have .item p for a class. i'm guessing p means that the item class only apply to paragraphs, but im not sure?
.item p will look for a paragraph inside an element that has class "item" Example
<div class="item">
<p>Some Text</p>
</div>
If you wanted to apply style to a p tag that has specific class it would then be p.yourclass This would match
<p class="yourclass"></p> but not <div class"yourclass"></div>
.item ...
so p.yourclass would be more selective than just .yourclass p? p.yourclass would apply to only p tags with the yourclass class, and .yourclass p would apply to all p tags in said area?