r/HTML • • 27d ago

Question Menu code repetition

Should I look for a way to call an external html page with the code for my menu? I feel like adding the code to every page might clutter the code a bit. It’s been a while and I don’t remember wether or not we discussed this in school lol

6 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/GirlCanGame 20d ago

Agreed, as long as the server running the website has php enabled, you can mix and match any bits of html with simple "include"