JoelC
04-19-2006, 01:33 PM
There's this website I'm building (http://www.fuzzit.com/rcta).
The website is basically a table. It has a header area with the site's banner and links to different pages. An ending area where theres a picture closing the table (design wise). And finally an area between the header and the ending, where the pages are shown.
My problem is that on each page I have to write out the entire code (Copy and Paste, but still), which:
a) Makes my code hard to follow.
b) Leaves me with the same code over and over again.
c) Makes it rather hard to change links or images, since I have to do each page individually.
I was wondering if there was a way that I could insert the header and ending codes from a different file, so it would come out:
<body>
[header insert]
whichever page code I'm working on
[ending insert]
</body>
This way my code would be much easier to follow and work on, and much nicer to look at ;)
I'm sure there must be a way to do this, so if you could clue me in, I'd really appreciate it.
Thanks,
Joel.
The website is basically a table. It has a header area with the site's banner and links to different pages. An ending area where theres a picture closing the table (design wise). And finally an area between the header and the ending, where the pages are shown.
My problem is that on each page I have to write out the entire code (Copy and Paste, but still), which:
a) Makes my code hard to follow.
b) Leaves me with the same code over and over again.
c) Makes it rather hard to change links or images, since I have to do each page individually.
I was wondering if there was a way that I could insert the header and ending codes from a different file, so it would come out:
<body>
[header insert]
whichever page code I'm working on
[ending insert]
</body>
This way my code would be much easier to follow and work on, and much nicer to look at ;)
I'm sure there must be a way to do this, so if you could clue me in, I'd really appreciate it.
Thanks,
Joel.