So in working with my website, I am trying to use .php
files for my header and my footer to make the code infinitely easier to work with, but I am running into a wall. Here is my code on my index.html
page:
<!DOCTYPE html>
<html>
<?php include 'header.php';?>
And it was by going through several questions here on stack and other places that I got that syntax, but when I try and view my index.html
page, nothing shows up in the header, it just goes straight for my <body>
. Here is what my header.php
looks like:
<?php
<header>
<figure>
<img src="the-logo.png" alt="this is just a test">
</figure>
</header>
?>
As you can see, I'm just testing things out. What could I do to fix this?