h2 { /* Selects all <h2> elements. */
    background-color: yellow;
}
span { /* Selects all <span> elements. */
    background-color: darkblue;
    color: white;
}
<h2>Element Name Selector</h2>
<span>This is a span with text.</span>
<p>This is a p with text.</p>
<span>This is another span with text.</span>
Rendered Output