<body>
  <p>子要素</p>
  <div>
    <p>孫要素</p>
  </div>
</body>
body > P {
  color:red;
  font-size:32px;
  font-weight: bold;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.