IntelliJ Java IDE
The moose likes HTML, CSS and JavaScript and the fly likes How to include one HTML file in anothe HTML file.. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How to include one HTML file in anothe HTML file.." Watch "How to include one HTML file in anothe HTML file.." New topic
Author

How to include one HTML file in anothe HTML file..

Chetan Dorle
Ranch Hand

Joined: Aug 06, 2009
Posts: 80

Hi Guys,


Can anyone suggest how to include one HTML file in another...


Thanks in advance ..............



Good day........



Regards,
Chetan.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Maybe your web server supports server-side includes (SSI)? Or maybe you're using JSP (which have import facilities)? Or are you asking about something on the client side? Static or dynamic? Knowing more detail would help us help you.
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

There is no native facility in HTML for inclusions. As Lester pointed out, you need to use a server-side mechanism *.








* Caveat: you could sort of fake a client-side include with Ajax, but that's really not a recommended approach.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
IntelliJ Java IDE
 
subject: How to include one HTML file in anothe HTML file..
 
Threads others viewed
How to include a hit counter?
How can add a company emblem in many pages?
Include dynamic HTML in a JSP
Include a HTML file in another HTML File
Basic Doubt
jQuery in Action, 2nd edition