<section>
<!-- h1 ~ p 는 h1 뒤에 나오는 모든 p 선택 -->
<!-- h1 앞에 나오는 p는 color: red 적용 안됨 -->
<p>안녕하세요</p>
<h1>안녕하세요</h1>
<p>안녕하세요</p>
<p>안녕하세요</p>
</section>
h1 ~ p{
color: red;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.