title: How to properly include a header file in a webpage
body: <p>So I have a header file:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
     &lt;link href="/design_header.css" rel="stylesheet" type="text/css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
     content
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And I want to place this header in my file</p>
  
  <pre><code>  &lt;!DOCTYPE html&gt;
      &lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en"&gt;
       &lt;head&gt;
       meta tags etc.
      &lt;/head&gt;
      &lt;body&gt; 
        &lt;div id="container_big"&gt;
         &lt;?php include 'header_login.php'; ?&gt;
          content
        &lt;/div&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>The problem is now I have regular <code>&lt;html&gt;, &lt;head&gt;, &lt;body&gt;</code> tags inside the <code>&lt;body&gt;</code> tag of my webpage. In the html validator I receive errors like</p>
  
  <blockquote>
  <pre><code>Stray start tag html.
  Stray end tag head.
  An body start tag seen but an element of th
  </code></pre>
  </blockquote>
  
  <p>e same type was already open.</p>
  
  <p>How to do it properly? Btw. I also place a footer to the bottom of the webpage the same way.</p>