Putting footer region under body tag
Best practice dictates that you should not put the header or footer outside of the body tag. All visible content on your site goes inside the body tag.

Correct HTML syntax looks like this (here is a basic example):

&lt;head&gt;
  &lt;title&gt;My Drupal site&lt;/title&gt;
  &lt;!-- Other metadata goes here --&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;header&gt;
    &lt;!-- Top of the page content goes here --&gt;
  &lt;/header&gt;
  &lt;section&gt;
    &lt;!-- Main body content goes here --&gt;
  &lt;/section&gt;
  &lt;footer&gt;
    &lt;!-- Footer content goes here --&gt;
  &lt;/footer&gt;
&lt;/body&gt;


See this page for some extra details https://www.w3schools.com/html/html5_semantic_elements.asp

I know this doesn't technically anwer your question, but I feel this is a "correct" response in regards to what information will be most helpful.