Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to include menu as well as footer in single html file where then i want to import it to other html files to reduce the overheads. i have website with vast no of pages .. so i want something that i create menu links on one file and rest of file will use the same links as much as they way...i dont want to write in every file the link. just want to write it once and usee it alwaus ...

What I have tried:

NO idea already used iframe but want a flawless method to do soin basic html files thank you please help
Posted
Updated 23-Apr-17 22:57pm

1 solution

Up to HTML 4 there was no support of including other HTML files.

With HTML 5,
HTML
<link rel="import" href="[uri]">
has been added. See HTML Imports[^] and HTML Imports: #include for the web - HTML5 Rocks[^] .

When still using HTML 4 there are various methods like using scripts, iframes, and server side includes. See for example
Include another HTML file in a HTML file - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900