0

Is there a way of including HTML pages without needing any javascript or server-side code, only HTML.

Basically I can't be sure if the server supports server side includes. I don't want to use javascript and I don't want to use any PHP or other server side functionality.

Is there any way to do this. At the moment I suspect not, but would be very interested if it were possible.

Ankur
  • 50,282
  • 110
  • 242
  • 312

3 Answers3

8

Use some frames in your page

HTML frames allow authors to present documents in multiple views, which may be independent windows or subwindows.

<iframe></iframe> is the tag you need to include inline floating frames.

Quick tip with iframes: Be sure you open and close the tag explicitly, if not some browsers will complain

victor hugo
  • 35,514
  • 12
  • 68
  • 79
2

You can use framesets.

Dour High Arch
  • 21,513
  • 29
  • 75
  • 90
chickeninabiscuit
  • 9,061
  • 12
  • 50
  • 56
1

HTML imports, part of HTML Components, aims to do exactly this.

HTML5rocks offers a great tutorial to get started with HTML imports.

According to can I use, only Chrome is supporting HTML imports today.

Bram Luyten
  • 1,034
  • 7
  • 18