#nav ulSearches for an element ulinside the element with the identifier "nav".
<div id="nav">
<ul>
<li>Like me</li>
</ul>
</div>
ul#navsearches ulthat has the id value of "nav".
<ul id="nav">
<li>Like me</li>
</ul>
The same applies to classes:
div.greySearches for an element divthat has the class name gray.
<div class="grey">Foo</div>
While div .greylooking for any element that has the class name "gey" within div.
<div>
<p class="grey">
I'm special!
</p>
</div>