How to properly link CSS files with PHP footer and header
<p>So I've recently discovered how to use php includes to include a footer and header in each of my files to avoid copy pasting all the header/footer code to each file. But let's say I have a footer.php, header.php, home.php, and about.php</p>

<p>Do I have my title, opening html/body tag, etc. in the header.php or home.php and about.php. </p>

<pre><code>//header.php
&lt;html&gt;
   &lt;head&gt;
      links to header.css
      links to home.css
      links to about.css
   &lt;/head&gt;
   &lt;body&gt;

//home.php
&lt;?php include("header.php"); ?&gt;  //PROBLEM: the header.php also includes other .css such as "about.css", etc. that could result in problems later.
   &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>What Should I do to fix this? One way I thought of is to remove the beginning part(html,head,title) of the header.php file and move it home.css and about.css so they each have their own css links.</p>