Kau Moo
Kau Moo

Reputation: 51

Assemble Web page from HTML template, CSS template and HTML content pages

I have a site where most pages have the same layout, only content and possibly the background image is different. Same HTML and CSS, with only difference in section and background-image. This is what I have been doing when I create a new page:

There is a lot of repetition, and identical pages with only one div difference. I would also like to separate the content from page design, so that I could simply add a link on index.html that would do something like [mix of HTML and pseudocode only to illustrate what I want to do]:

<a href="page_template.html(new_content.html, new_content.jpg)>

I am new to this all, just trying to streamline how to make my own page work. Javascript I can cut and paste, and usually figure out how it works.

Upvotes: 0

Views: 251

Answers (1)

Frank Lillich
Frank Lillich

Reputation: 122

You can't. HTML is static. To create dynamic content you need something like PHP, XML/XSL or a CMS (Content Management System).

Upvotes: 1

Related Questions