Including header file using HTML

Sharky Forums


Results 1 to 2 of 2

Thread: Including header file using HTML

  1. #1
    Sushi
    Join Date
    Dec 2006
    Posts
    3

    Including header file using HTML

    Is it possible to include a header and footer file using HTML? I have my file as a .html and need to be able to include the HTML for the header and footer. Anyone know how I can do this?

  2. #2
    Hammerhead Shark
    Join Date
    Feb 2001
    Posts
    1,612
    Not with HTML. You can include a <SCRIPT> file, and output the HTML using javascript. That will do what you need, but the only downside is that it requires javascript on the browser.

    The other option is to use some server-side scripting language (ASP or PHP would be perfect for this), and they will allow you to do exactly what you want.

    Or, you could rely on software (such as dreamweaver) to maintain a template for you, and actually modify all the .html files in a folder if you decide to modify the template file.

Posting Permissions

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