I'm working on a "plain" HTML-CSS website. It contains several pages. I want some code to be included in all HTML pages. (All have a navbar at the top)
What is the best way to include that part of the code in all files in order to avoid repeating code?
I've tried creating a directory named "partials", there I added a file called header.html and then tried including it in a different file with PHP. like so:
<?php include "./partials/header.html" ?>
This is not working. Please advise me what to do.
Thanks!