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.
whole house cleaning Deerfield ..Content is the most important part of any website.The Internet... Read More
Using CGI scripts to add automation to your web site... Read More
Do you have a website? If so, you need an... Read More
CSS is a new option for website designers that have... Read More
Let's face it. Buying products and services from the Internet... Read More
Being a writer, when I was asked to do some... Read More
They may look cutting edge, but if you want a... Read More
Learning how to convert visitors to your web site into... Read More
Have you ever thought about the real stories behind all... Read More
I get the occasional web design lead from my website.... Read More
Projecting a professional image is paramount to your website's success.... Read More
There is no doubt that reprint articles can serve lots... Read More
A "template" is simply a design format which you can... Read More
If you have a web site to which people pay... Read More
QUESTION: My business is very small, just me and... Read More
Developing a software application is not easy at all; apart... Read More
Gone are the days when you had to rely on... Read More
What do the key words represent?Key words - these are... Read More
The effective design is this one, which is maximum simplified,... Read More
Don't knock it; "Keep It Simple, Stupid" is a great... Read More
The most important person that you need to please when... Read More
Yes, in a world that is obsessed with makeover madness,... Read More
What the heck is going on lately? Most internet websites... Read More
With an increasing number of employment portals emerging, it is... Read More
The Basics You have a flourishing business ? everything is... Read More
home cleaning services Des Plaines ..My mother used to take me along when she visited... Read More
On the internet we don't deal with face to face... Read More
A "404 Error" happens when the web server you are... Read More
If you're not getting a lot of traffic to your... Read More
Remember your vision for your company and the brand or... Read More
If you are going to be placing ads on your... Read More
One product, one long web page: this kind of web... Read More
Everything you say and do says something about you. This... Read More
If one more business owner tells me their website sucks... Read More
Web advertising has taken many forms, including those that appear... Read More
The Internet has seen an explosion in so called 'lance'... Read More
You know... Before purchasing your product a person comes to... Read More
You've made your website, added a great title and keywords... Read More
Automating your online business is one of the most important... Read More
Just what is web copy? Some people think that web... Read More
In learning webpage design, I encountered many problems that took... Read More
For online businesses with their main goal of selling products,... Read More
It seems more and more webmasters are using CSS for... Read More
Studies done by Jakob Nielson the man touted as the,... Read More
A website should firstly be searched out by visitors before... Read More
We've all read the countless publications about effective web site... Read More
Countdown to Armageddon - at least you'd think so judging... Read More
10 Basic Things Your Website Should Have ...__ all short... Read More
Before you start worrying about marketing your website on the... Read More
New Web sites are springing up online by the millions.... Read More
Web Design |