Following is my code. Why both "hi" and "hello" are in white background-color? I think the element .content .parti
should be more particular than .content p
and "hello" should be in orange background-color.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>particularity</title>
<style type="text/css">
.content p {
background-color: white;
}
.content .parti {
background-color: orange;
}
</style>
</head>
<body>
<div class="content">
<p>hi</p>
<div class="parti">
<p>hello</p>
</div>
</div>
</body>
</html>