Child Selector
A child selector targets an immediate child of an element. The child selector consists of one or more simple selectors separated by a greater ">" sign. The parent element is to the left of the ">" sign, and it is allowed to leave blank space between the combination element and the selectors.
The following rule applies to all strong
elements that are children of a div element:
div > strong { color:#f00; }
Only strong elements that are direct descendants of the div
element will be affected by this rule. If there is any other element between the div
element and the strong
element in the document tree, the selector does not apply. In the following example, only "Text one" will be affected by the rule:
<div>
<strong>Texto um</strong>
<p><strong>Texto dois</strong></p>
</div>
See More about Selectors
So your code should look like this:
.AlterarCSS > ul > li > span{
background: yellow;
}
<div class="AlterarCSS">
<ul>
<li>Nome - <span>Endereço Site<span></li>
<li>Nome - <span>Endereço Site<span></li>
<li>Nome - <span>Endereço Site<span></li>
</ul>
</div>