How to insert one HTML into another

Asked

Viewed 40 times

1

Simple, but I’m starting and I believe they’ll help me objectively.

I need to insert a menu and footer like a #include of , but direct in HTML is possible?

  • You want to do it in the browser or on the server?

  • By Browser, it is a normal HTML site.

  • 1

    Include in HTML does not work. What you can do is to use iframes, or load parts with Javascript. But none of the solutions is totally equivalent. Now, it is difficult a page server that doesn’t have something like this. Even Apache, with no language installed, has server side includes.

  • Excuse the ignorance, being by Includes or JS, to run the tests is better to install the site on the server and do there than by local?

  • HTML and JS are rendered the same way being on a server or locally, so there is no need to go up to the server to test.

  • Thank you! I’ll keep searching

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.