Is there any alternative for using a frame. I'm just a beginner and I still don't know what the web designers are doing. Almost all of the websites I see. Retains the header in the page. How can I apply that so I can stop from using frames.

Was it helpful?


Use a server-side language like PHP in order to generate a full HTML page.

For example, create three files:

  • header.php
  • page.php
  • footer.php

In the header.php file you have to put the first part of the HTML page.
In the page.php file you have to put the main content of the HTML page.
In the footer.php file, like the header.php, you have to put the end part of the HTML page.
So you can change the page file and the header and the footer remain.


<div id="header">
Place your header here.


<?php include('header.php'); ?>
<div id="main_content">
Place your page content here.
<?php include('footer.php'); ?>


<div id="footer">
Place your footer here.

For more information, search for a PHP tutorial with Google.


In regards to what you see in most websites, they just reuse the same code.. (usually in an external file and insert it in all their pages)..

Take a look at Server Side Includes for more info

Depending on what you wish to display you could look at using divs or using includes.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow