CSS의 자손 선택기는 지정된 요소의 자손인 모든 요소를 일치시키는 데 사용됩니다.
예시
다음 코드를 실행하여 CSS Descendent Selector를 구현할 수 있습니다.
<!DOCTYPE html>
<html>
<head>
<style>
div p {
background-color: orange;
}
</style>
</head>
<body>
<div>
<p>Para 1 in the div</p>
<p>Para 2 in the div</p>
</div>
<p>Para 3 outside the div.</p>
</body>
</html> 출력
