<style>
body {
  border: 2px red solid;
}

div {
  border: inherit;
}
</style>

This is text directly inside <code>&lt;body></code>
  
  <div>This is text inside a <code>&lt;div></code> with <code>border: inherit;</code>. (Do not try this at home.)</div>
body {
  margin: 2rem;
  padding: 1rem;
  font: 16px system-ui;
}

div {
  margin-top: .5rem;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.