title: Which is the best way to load header, nav and footer? I used php but I'm not sure
body: <p>I have got header.html, nav.html and footer.html. I need to load them on a index.php.
  is it right? Because this works but I don't know if this is the best way to do.</p>
  
  <p>index.php</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
    &lt;header&gt;&lt;?php require('../layout/header.html')?&gt;&lt;/header&gt;
    &lt;nav&gt;&lt;?php require('../layout/nav.html')?&gt;&lt;/nav&gt;
    &lt;div id="content"&gt;Hello World&lt;/div&gt;
    &lt;footer&gt;&lt;?php require('../layout/footer.html')?&gt;&lt;/footer&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>header.php</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
      &lt;img src="../images/header.png"&gt;
  &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>