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

Web Development

3904 readers
20 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@programming.dev 3 points 8 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

[–] PmMeFrogMemes@lemmy.world 3 points 10 hours ago

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

[–] shnizmuffin@lemmy.inbutts.lol 2 points 17 hours 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.

[–] dan@upvote.au 2 points 11 hours ago

This is not possible* with native HTML.

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

[–] pohart@programming.dev 1 points 14 hours ago* (last edited 14 hours ago)

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

Edit: I found what I already use :(