id > class > 要素 > * (←をクリックすると他の状態もみられるよ)
このサンプルは「class」の指定が優先されています。
テキストの色の指定を見てください。
<div>
<p id="thisId" class="thisClass">テキストの色の指定を見てください。</p>
</div>
.thisClass { /* ★★★☆☆ */
color: red;
}
div p { /* ★★☆☆☆ */
color: blue;
}
* { /* ★☆☆☆☆ */
color: gray;
}