Jump to content

How would include a html file


IChaps

Recommended Posts

Hello.

 

I'd just like to enquire, how would I include one html file in another?

 

I'm using a bootstrap theme. I've created a menu, which I would like to include on a few more pages I'll be creating.

 

I have used the old method - <!-- webbot bot="Include" U-Include="mainmenu.html" TAG="BODY" --> but I can't get this to work.

 

I've also used iframe but all I get is a blank square.

 

Could anyone please help?

 

Thank You.

 

 

Link to comment
Share on other sites

I've never heard of "webbot" or anything like that before it's probably a feature used by some proprietary software. HTML does not have the ability to include other pages in it, you need a server-side programming language to do that. PHP is among the most popular server-side languages.

Link to comment
Share on other sites

Hello Ingolme,

 

Thank you for you reply.

It's been about 8-10 years since I built a web site, so things may have changed some-what.

 

The line I specified above, was used when I used FrontPage 2000/2002.

 

Now, all attempts to use include in html has failed.

I've used the guide on w3schools's site and I can't get to this to work for some reason.

 

I just don't know what else to try.

I'd welcome any help.

 

Thank You.

Link to comment
Share on other sites

Including code has never been a native functionality of HTML, you will need a server-side programming language to do it. Most likely the FrontPage editor used to replace those tokens with code from other files before exporting the files for the web.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...