h2 { /* 모든 <h2> 요소를 선택합니다. */
    background-color: yellow;
}
span { /* 모든 <span> 요소를 선택합니다. */
    background-color: darkblue;
    color: white;
}
<h2>요소 이름 선택자</h2>
<span>텍스트가 있는 span입니다.</span>
<p>텍스트가 있는 p입니다.</p>
<span>텍스트가 있는 또 다른 span입니다.</span>
실제 적용된 모습