An "include" file is a piece of code that can be put into a seperate file -- for example -- your navigation bar -- and then "included" in a number of other pages. This has the very useful advantage of allowing you to retain consistency over a very large number of pages, and then make changes to all of those pages by just changing the include file.
For instance, say you want each page in your site to include a short paragraph that uniquely identifies your site. I normally call this a "site-id". It would read something like this:
forsaletours.com - provides information and sources for virtual tours for the real estate industry. We explain different methods of combining video and audio to produce virtual representations of your home to enhance its value and to make the purchasing experience of potential buyers better than it otherwise might be.
To set this up so it appears in a host file as an "include", you normally have to do three things:
1. Make sure your server allows SSI (server side includes). If you have access to your web site control panel you should be able to figure this out. Or if not, ask your web host technical support people.
2. Create a "host" file and give it a file extension so your server recognizes it contains include files. A common extension is .shtml
3. Create your include file. It can usually have any of a number of different extensions: .html, .htm, .php, even .txt. This is the file that will be included within other files.
4. Embed the correct code within your .shtml file to point to the include file. If the include file and host file are in the same folder on the server, it will look like this:
<!--#include file="file_name.html"-->
If the include file is located in a different folder (on the same server), the code will look like this:
<!--#include virtual="folder_name/file_name.html"-->
In the above example you have to make sure the relative path to the include file is set correctly.
Now when you want to make a global change to, for instance, your "site-id", you just have to change the include file (once), and this change will be populated through all the pages that include that file.
Include files can be put to many creative uses that allow you to do things that are otherwise very impractical. And if you have a website with a large number of pages, this technique can save you a great deal of time.
For more web design and online marketing tips see the forsaletours.com
Rick Hendershot is a marketing consultant, writer, and internet publisher who lives in Conestogo, Ontario, Canada. He publishes several websites and blogs, including forsaletours.com. This network provides an inexpensive way to advertise your website, and get as many as 100 low cost links.
full-service cleaning Glenview ...The internet is full of web design companies pleading for... Read More
Creating your own website is great fun! But how is... Read More
Content is king. Without content your website is an empty... Read More
Do use a consistent look and feel Your site should... Read More
You know that I'm always extolling the virtues of an... Read More
There are many companies who build websites, all of which... Read More
As my occupation is that of a proofreader, one of... Read More
With an increasing number of employment portals emerging, it is... Read More
Why your site should be developed with CSS and semantic... Read More
When building your website you might not have a large... Read More
Your web site is the key to your success on... Read More
Your website design may be affecting your sales in ways... Read More
Think of the people who visit your site as blind... Read More
One of the simplest things you can do to give... Read More
Remember the day that you got your new computer (or... Read More
If you have a business, big or small you may... Read More
If you are familiar with my work, then you have... Read More
You know... Before purchasing your product a person comes to... Read More
STEP 1:Do your homeworkPlan and think about your content. Think... Read More
Yes, in a world that is obsessed with makeover madness,... Read More
Here is a quick list of components that make a... Read More
"It's good.""You've done a nice job.""I don't like it."At some... Read More
You've likely heard of the movie, Jerry Maguire, with its... Read More
We've all seen and read product testimonials. They're a very... Read More
Square buttons, round buttons, flashy buttons ? will they match... Read More
efficient cleaning crew Deerfield ...You have only 10 seconds to impress your potential buyer.... Read More
An ongoing challenge for webmasters today is to provide fresh... Read More
If you are going to be placing ads on your... Read More
Selling on the internet is a challenge. There is no... Read More
Have you put a lot of effort, time, and money... Read More
I'm not a professional web site designer and openly admit... Read More
As search engine marketers, we spend an enormous amount of... Read More
What is the relationship between Marketing and Web designing? How... Read More
Designing your website means you have to be creative, plan... Read More
If you've just finished building your new website (or revamping... Read More
Here's the single most important part of your website: YOUR... Read More
Here's a really simple way... any novice can create a... Read More
So you need a website. You are not sure if... Read More
Sin #5Poor Spelling And GrammarWe all make mistakes when we... Read More
A website should firstly be searched out by visitors before... Read More
Have you ever walked pass a shop that, for some... Read More
Imagine you're going on a blind date. You've heard wonderful... Read More
With an increasing number of employment portals emerging, it is... Read More
Content is the most important part of any website.The Internet... Read More
Setting up a survey on your site is extremely simple... Read More
The Questions You Should Be Asking ? The Answers You... Read More
A client asked me, at what point do you change... Read More
So, what's in a website design anyway? And, how do... Read More
Due to the large number of people offering web design... Read More
There are two camps when it comes to flash web... Read More
Web Design |