this post was submitted on 11 May 2025
11 points (100.0% liked)

Web Development

3908 readers
19 users here now

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

Related Communities

Wormhole

Some webdev blogsNot sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

CreditsIcon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS
 

Post is in the link - simplest method possible please: my web dev skills are weak!

top 5 comments
sorted by: hot top controversial new old
[–] irelephant 3 points 15 hours ago

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 regular frame, but that element is deprecated.

You could also make a small script that adds the contents of the file into a div

[–] [email protected] 3 points 17 hours ago

for a shotty quick hack you could just pop that sucker in an iframe

[–] [email protected] 2 points 1 day ago (2 children)

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.

[–] [email protected] 2 points 17 hours ago

This is not possible* with native HTML.

You can go old school and use frames! http://www.dansoftaustralia.net/oldest/

[–] pohart 1 points 21 hours ago* (last edited 21 hours ago)

Ooh, running to see if I can find it on SO. I love bad hacks.

Edit: I found what I already use :(