help: html include
Posted: Fri Aug 19, 2005 5:29 am
I was thinking of creating separate files for header, menu and footer and including these files in all other files in the website.
so I basically try to include few html files in another html file
syntax I got:
<!--#include file="somefile.ext"-->
I have got all the including files in the same directory where the target file is.
Now, it does not include rather this is wot it does.
this is wot it printed when I viewed the source of the target file
so I basically try to include few html files in another html file
syntax I got:
<!--#include file="somefile.ext"-->
I have got all the including files in the same directory where the target file is.
Now, it does not include rather this is wot it does.
this is wot it printed when I viewed the source of the target file
Code: Select all
<!--#include file="header.inc"-->[b]//you see this is intact[/b]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Weather</title>
</head>
<body>
</body>
</html>