title: Giving background-color to body applying whole page. Why?
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body {
    background-color: red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
    &lt;div&gt;Hello World!&lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>So the <code>background-color: red;</code> applies to whole page height but when I inspect the page the height of the body is only up to the <code>div</code> containing <strong>Hello World!</strong>. </p>
  
  <p>Someone please explain this why it is happening like this.</p>