0

I am beginner in html / website design. I have 4-5 webpages. All these pages have top banner, left sidebar & right sidebar. At present I am writing html code in all the 4-5 pages for these above elements. Is there a way, I just write the code once (in one file) and this file can be called / included in all the 4-5 pages. In case, I have to make change I just need to update one file and the change gets reflected in all the pages.

4
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by almostbob
0

Yes,
its the most common improvement from "my first web page" to "my second web page"
in .php .asp .shtml (server side language extensions to html) you can <?php include('menu.php'); ?> (example)
the only thing you have to do is determine what server language your hosting package supports and use that language
my site has 1600+ pages, & 2 included files that actually do all the 'grunt work'
head.php that is all the doctypes css scritps
menu.php that is the menu, sidebar and footers
the average page looks like

<?php include('/head.php');
include('/menu.php'); ?>
content bla bla bla
</body></html>

menus on all pages can be altered easily and all pages retain the same look and feel all the time

Edited by almostbob: n/a

0

It works. Thanks.

Yes,
its the most common improvement from "my first web page" to "my second web page"
in .php .asp .shtml (server side language extensions to html) you can <?php include('menu.php'); ?> (example)
the only thing you have to do is determine what server language your hosting package supports and use that language
my site has 1600+ pages, & 2 included files that actually do all the 'grunt work'
head.php that is all the doctypes css scritps
menu.php that is the menu, sidebar and footers
the average page looks like

<?php include('/head.php');
include('/menu.php'); ?>
content bla bla bla
</body></html>

menus on all pages can be altered easily and all pages retain the same look and feel all the time

-1

I am beginner in html / website design. I have 4-5 webpages. All these pages have top banner, left sidebar & right sidebar. At present I am writing html code in all the 4-5 pages for these above elements. Is there a way, I just write the code once (in one file) and this file can be called / included in all the 4-5 pages. In case, I have to make change I just need to update one file and the change gets reflected in all the pages.

dear friend,

I got your prob., to resolve this prob. you have to use <frameset> to create this web site,

Regards,

0

dear friend,

I got your prob., to resolve this prob. you have to use <frameset> to create this web site,

Regards,

framesets require multiple files all complete html, they are larger than necessary so are slower than necceessary
framesets are not indexed well by search engines
and have been superseded by server includes, in any of the server languages previously mentioned, smaller faster and more indexable
framesets are a retrograde step,

the thread was marked 'solved' before you posted, the original poster thinks its DONE, and the answers given work

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.