devxlogo

Use Javascript Templates in Static HTML Pages

Use Javascript Templates in Static HTML Pages

If your site contains pure static HTML pages, you’ll have a tedious time entering the same header and footer HTML tags on all the pages. This is where JavaScript comes to the rescue.

JavaScript allows you to centralize this information in header.js and footer.js files. This way, you call those files in your HTML pages:

<html>