user3261889
user3261889

Reputation: 11

Putting Header HTML into one file

I have a header on my website that I would like to put into one file, like CSS files, so I only have to edit one file to add or remove content rather than 8.

Upvotes: 0

Views: 42

Answers (2)

Albert Xing
Albert Xing

Reputation: 5788

In addition to the traditional server-side solutions mentioned by Brad, you can also try shtml (server side includes). See the Wikipedia article. It's supported by Apache, nginx, lighttpd, and more.

Upvotes: 0

Brad
Brad

Reputation: 163622

You're going to need some server-side technology to build HTML files with common files included. PHP, Ruby on Rails, Node.js with Express, etc.

Upvotes: 1

Related Questions