venkat6134 — 2011-06-28T07:16:59-04:00 — #1
I am a newbie to HTML includes.
I want to include a header.html page into my test.html, test1.html.
When i change header.html, it will immediately reflect the changes in the test.html, test1.html.
How can i include like this functionality?
Give me your suggestions...
guido2004 — 2011-06-28T07:36:09-04:00 — #2
using a server side language, for example PHP
venkat6134 — 2011-06-28T07:56:58-04:00 — #3
not by using php..
When i include by using this code in a test.html;
<!--#include file="header.html" -->
After i see the source of html in the browser, it is showing two <html>, two <head> like that..
How can i prevent this..
Give me the pros and cons if i use like this..
guido2004 — 2011-06-28T08:31:13-04:00 — #4
Get rid of the <html> and <head> in one of the files (the main html or the included html). The end result must be a complete, valid html page, so you'll have to put each piece in the right file.