The following is my sample.
<html>
<head>
<style>
.test{
background-color: red;
p {
background-color: yellow;
}
}
</style>
</head>
<body>
<div class="test">
<p id="firstname">My name is a.</p>
<p id="hometown">I live in b.</p>
</div>
<p>My best friend is c.</p>
</body>
</html>
as you see. why the "p" in div not yellow? if i want let two "p" which is in div and class="test" is must exist. how can i write in my class test Thank you!