title: PHP Header Include (nav bar) not showing up
body: <p>CLARIFICATION: Being that I've never used PHP, it was unclear how to format the PHP file, so that when you include it in the index, then header(nav bar) would show up. No posts explained why I had to change my index.html to index.php to make it work. And again, being that I haven't used PHP, I was under the impression that changing the extension meant that I would have to convert my HTML code to PHP commands. I was trying to avoid having to change my whole code around. That's where the confusion was.</p>
  
  <p>I was going to delete the question once I got it figured out. Then again, I'm sure I'm not the only person that may run into this while making their first website.</p>
  
  <p>SOLUTION. Save only the nav code in html language with a PHP extension (header.php). Change index/home file from .html to a .php extension (don't have to modify any code. but accepts the include prompt). Then, include the header.php in your index.php. Same goes for your footer. Thanks for the help everyone.</p>
  
  <p>*ORIGINAL POST: Through another post, I was told it would be easier to use a nav/footer on multiple pages by using PHP.</p>
  
  <p>I created a file and tried including it and it is not displaying. I'm not sure what I am doing wrong.</p>
  
  <p>There is some CSS in my nav bar as well, do I need to import the css file in the PHP file? or does the index.html file automatically attach to the included (php) file.</p>
  
  <p>PHP Code:</p>
  
  <pre><code>&lt;?php
  echo '&lt;nav&gt;
      &lt;div&gt;
          &lt;a href="/"&gt;
              &lt;div id="logo"&gt;&lt;img src="/Images/7serviceLOGOblue2.png" alt="Home"/&gt;&lt;/div&gt;
              &lt;div id="headtag"&gt;&lt;img src="/Images/title.png" alt="Home"/&gt;&lt;/div&gt;
              &lt;div id="tagline"&gt;&lt;img src="/Images/tag_line.png" alt="Home"/&gt;&lt;/div&gt;
          &lt;/a&gt;
      &lt;/div&gt;
      &lt;div&gt; 
          &lt;a href="/" class="here"&gt;Home&lt;/a&gt;
          &lt;a href="/about.html" &gt;About&lt;/a&gt;      
          &lt;a href="/services.html" &gt;Services&lt;/a&gt;          
          &lt;a href="/pricing.html" &gt;Pricing&lt;/a&gt;    
          &lt;a href="/contact.html" &gt;Contact Us&lt;/a&gt;
          &lt;input id="srchbar" type="search" placeholder="Search"&gt;
      &lt;/div&gt;
  &lt;/nav&gt;';
  ?&gt;
  </code></pre>
  
  <p>HTML Code (include):</p>
  
  <pre><code>&lt;body&gt;
  &lt;?php include '/header.php';?&gt;
      ....other code....
  &lt;/body&gt;
  </code></pre>
  
  <p>If there's a problem with the PHP file, if I'm missing something, can someone show an explain please?</p>