title: include head with php
body: <p>I have trouble with the contruction of a working well formmated DOM, through php.</p>
  
  <p>The source-code is diplayed right, but all the dev-tools of Chrome, Firefox and Edge, display the head-tag inside the body-tag. Can you please help me to spot the mistake, beacuse the frontend is now faulty displayed.</p>
  
  <p>it look like this: </p>
  
  <p><a href="https://i.stack.imgur.com/HOUu2.png" rel="nofollow"><img src="https://i.stack.imgur.com/HOUu2.png" alt="enter image description here"></a></p>
  
  <p>php-snippet:</p>
  
  <pre><code>&lt;?php
  session_start();
  
  //doctype
  echo "&lt;!DOCTYPE HTML&gt;\n";
  
  //html
  echo "&lt;html&gt;\n";
  
  //html-head
  echo    "&lt;head&gt;\n";
          include "inc/head.html";
  echo    "&lt;/head&gt;\n";
  
  //html- body start-end
  echo    "&lt;body&gt;\n
          some content
          &lt;/body&gt;\n&lt;/html&gt;\n";
  ?&gt;
  </code></pre>
  
  <p>head.html:</p>
  
  <pre><code>&lt;meta http-equiv='content-type' content='text/html; charset=UTF-8' /&gt;
  &lt;meta name='author' content='MGM'&gt;
  &lt;script type='text/javascript' src='http://code.jquery.com/jquery-2.2.0.min.js'&gt;&lt;/script&gt;
  &lt;link rel="shortcut icon" href="media/favicon.png" type="image/png"&gt;
  &lt;link rel='stylesheet' type='text/css' href='media/desktop.css'&gt;
  </code></pre>
  
  <p>sourcecode html:</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
  ﻿&lt;meta http-equiv='content-type' content='text/html; charset=UTF-8' /&gt;
  &lt;meta name='author' content='MGM'&gt;
  &lt;script type='text/javascript' src='http://code.jquery.com/jquery-2.2.0.min.js'&gt;&lt;/script&gt;
  &lt;link rel="shortcut icon" href="media/favicon.png" type="image/png"&gt;
  &lt;link rel='stylesheet' type='text/css' href='media/desktop.css'&gt;&lt;/head&gt;
  &lt;body&gt;
  some content
          &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>