This sounds incredibly simple but has boggled my website for the past day. I'm really just trying to move my HTML header into a separate php file.
This is how the HTML header looks before change (works fine):
<div class = "header">
<h1>The Trade Shack<em id="demo"></em></h1>
</div>
And now I'm trying to set it in a separate php file:
<div class = "header">
<?php include "header.php"; ?>
</div>
And the header.php file:
<?php
echo ("<h1>The Trade Shack<em id=""demo""></em></h1>");
?>
On paper, this should work absolutely fine since my header.php file is just echoing what was written in the HTML file before. Why doesn't this work them? I don't have anything in my div header when I load the page.