Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. include html in html page

include html in html page

Scheduled Pinned Locked Moved Web Development
htmlhelpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    i gr8
    wrote on last edited by
    #1

    how can i include html in html page any help!

    L A 2 Replies Last reply
    0
    • I i gr8

      how can i include html in html page any help!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Without using any server side language there is only one way to include one html file within another html file. <iframe src="included.html" width="450" height="400" frameborder="0"> Another way is to use any server side language. In all server side scripting languages there is more than one method to include file. Hope this will help!

      Jinal Desai

      J 1 Reply Last reply
      0
      • L Lost User

        Without using any server side language there is only one way to include one html file within another html file. <iframe src="included.html" width="450" height="400" frameborder="0"> Another way is to use any server side language. In all server side scripting languages there is more than one method to include file. Hope this will help!

        Jinal Desai

        J Offline
        J Offline
        Jayapal Chandran
        wrote on last edited by
        #3

        Also you can use AJAX to include an html page into html after the page has loaded or other sense dynamically.

        Today's Beautiful Moments are Tomorrow's Beautiful Memories

        1 Reply Last reply
        0
        • I i gr8

          how can i include html in html page any help!

          A Offline
          A Offline
          AkiDakiObi
          wrote on last edited by
          #4

          If you want to embed a page in another, use iframe. Syntax:

          </iframe> </pre>

          The URL points to the location of the separate page. You can also point to a local file.

          You can also set height and width:
          <pre lang="HTML"> <iframe src="demo_iframe.htm" width="200" height="200"></iframe></pre>

          For removing the borders, use following code:

          <pre lang="HTML"><iframe src="demo_iframe.htm" frameborder="0"></iframe></pre>
          <div class="signature">---AkiDakiObi</div></x-turndown>

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups