اين دو كد را مشاهده كنيد:
فرقشون با هم چيه؟ وقتي كه نتيجه يكسانه؟
کد:
<html>
<head>
<style type="text/css">
div>p
{
background-color:yellow;
}
</style>
</head>

<body>
<div>
<h2>My name is Donald</h2>
<p>I live in Duckburg.</p>
</div>

<p>My best friend is Mickey.</p>

</body>
</html>
کد:
<html>
<head>
<style type="text/css">
div p
{
background-color:yellow;
}
</style>
</head>

<body>
<div>
<h2>My name is Donald</h2>
<p>I live in Duckburg.</p>
</div>

<p>My best friend is Mickey.</p>

</body>
</html>