the CSS rule which says element element according to this link http://www.w3schools.com/cssref/css_selectors.asp is not applied in below code . What's the issue in this ?
<!DOCTYPE html>
<html>
<head>
<style>
p div{
text-align: center;
color: red;
}
</style>
</head>
<body>
<h1 class="">This heading will not be affected</h1>
<p><div class="center">This paragraph will be red and center-aligned.</div></p>
</body>
</html>