Results 1 to 4 of 4

Thread: How to include Header & footer within HTML?

  1. #1
    Join Date
    Nov 2009
    Posts
    85

    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,302

    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.

  3. #3
    Join Date
    Oct 2005
    Posts
    2,394

    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:

    <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>;
    }

  4. #4
    Join Date
    May 2008
    Posts
    2,393

    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:
    <?PHP INCLUDE("nameOF file.html/htm" ;?>

Similar Threads

  1. How to create letterhead with header and footer in Openoffice
    By Kanknaadi in forum Windows Software
    Replies: 5
    Last Post: 18-02-2012, 11:07 AM
  2. Header and Footer in OpenOffice
    By Miles Runner in forum Windows Software
    Replies: 5
    Last Post: 19-02-2010, 02:24 AM
  3. Header footer start on page 2
    By Jayden in forum Windows Software
    Replies: 2
    Last Post: 29-07-2009, 10:46 PM
  4. How do i edit header and footer of a PDF?
    By Hilda Thompson in forum Windows Software
    Replies: 4
    Last Post: 04-07-2009, 02:27 PM
  5. How to add Header and Footer in Excel 2007
    By michaels in forum Windows Software
    Replies: 3
    Last Post: 05-05-2009, 06:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •