How to include Header & footer within HTML?
Hi,
I am doing web designing course. The course is in the middle stage of the Html. I can develop simple html document. I have query regarding the header and footer.
What is the procedure to include Header & footer within HTML document?. Is there any special function available in the Html to include the Header and footer?
Please help me, I will appreciate your help greatly.
Re: How to include Header & footer within HTML?
Hi friend,
Please review following procedures carefully:
*. The procedure of including header and footer in the Html document include some kind of server-side programming. You can use different Html editor to include header and footer such as Dreamweaver, UltraEdit. But you may get some error while running the program in these.
*. There is also an another techniques to include header & footer. To achieve this you will need to include footer in one html file and header in another html document. And then use these html file in the main html file in which you want include Header & Footer.
Re: How to include Header & footer within HTML?
Hi,
Try to implement the following code technique to include the header as well as the footer in your html program. This is not the complete program, it will only give you basic idea to implement header & footer:
Quote:
<title>header & footer</title>
<style type="TEXT/CSS">
<body margin:0; padding: footer:<length> 1 header:<length> 1 >
}
divDemo#Footer
{
bottom:0;
position:absolute;
left:1;
width:80%;
height:footer-<length>;
}
divDemo#Header
{
top:0;
position:absolute;
left:1;
width:80%;
height:header-<length>;
}
Re: How to include Header & footer within HTML?
Hi,
It's not easy to include header & footer in the html document. You should try to chane the name of html file which is with "*.html" to file which has "*.php" extension.
For example , suppose you have the html file named as "Demo.html", then you will need to change it into "Demo.php". Even after the changing extension your file will work finely.
Example:
Quote:
<?PHP INCLUDE("nameOF file.html/htm" ;?>