Post is in the link - simplest method possible please: my web dev skills are weak!
Its probably better to use some form of server-side rendering.
You can put it in an
iframe
, but that’s bad for accessibility. You can put it in a regularframe
, but that element is deprecated.You could also make a small script that adds the contents of the file into a
div
for a shotty quick hack you could just pop that sucker in an iframe
This is not possible* with native HTML.
You’ll want to either preprocess your website with a templating language (Nunjucks or Handlebars are probably the easiest), or enable server-side technology (PHP includes are probably the simple solution) to build your page navigation on request.
*There are some bad hacks on StackOverflow.
This is not possible* with native HTML.
You can go old school and use frames! http://www.dansoftaustralia.net/oldest/
Ooh, running to see if I can find it on SO. I love bad hacks.
Edit: I found what I already use :(