I have a website which has a navbar and a footer. I want every page of my website to contain this navbar and footer. I have put this HTML code into an HTML file where I have effectively created a website template.
I want this template.html file to be imported so that changes can be made simply and easily if needed. I have tried doing this like so:
<!DOCTYPE html>
<html>
<link rel="import" href="template.html">
<!-- PAGE CONTENT -->
</html>
If implemented correctly, the end result would should look like so:
<!DOCTYPE html>
<html>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<div class="navbar"></div>
<div class="footer"></div>
<!-- PAGE CONTENT -->
</html>
What would be the proper way of doing this? Thanks.
Please note: Content in HTML code has been edited down significantly to make it easier to read