Quantcast
Viewing latest article 1
Browse Latest Browse All 3

Answer by Ethan Brouwer for How to make HTML design of a website extensible, reusable and flexible?

Use jquery, or make your pages PHP and just use one of these functions in php tags where you want the common parts, or pages.

  • include()
  • include_once()
  • require()
  • require_once()

Take a look at this for some more info on how to use, or do some easy quick google searches.

Edit: Here is a JQuery implementation then, which is all executed in the browser:

Inside some Script tags:

$(document).ready(function(){    $.get( "test.html" );});

It follows the syntax on this page. Also, take a look at W3school's jquery tutorial. Also, you might want to look at this page at W3school to see how to add the contents of the html page where you want to.


Viewing latest article 1
Browse Latest Browse All 3

Trending Articles