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.
one time home cleaning Highland Park ..To explain my point I need to first confuse the... Read More
Don't just put your slogan in the title tag when... Read More
In this article I will give a few tips of... Read More
The first step to starting any Internet business is conducting... Read More
As a webmaster you already know how important it is... Read More
Are you building a direct sales or mlm business online?... Read More
Once, I attempted to create a favicon (the little graphic... Read More
I can't figure out people who have products or information... Read More
There are several very good reasons why you should consider... Read More
Every action has a beginning phase where you launch your... Read More
The top ten fonts for website design might change in... Read More
So you've decided to take the plunge. You know that... Read More
One of the most frequent questions I get asked about... Read More
We can't emphasize enough the importance of including keyword-rich content... Read More
Remember the famous line from the movie Field of Dreams,... Read More
So your web site's online and you've got high rankings... Read More
This is the second part of a two-part article about... Read More
ActiveX uses an interesting method for enforcing security ... it... Read More
In today's age of fast food and high-speed Internet, a... Read More
As search engine marketers, we spend an enormous amount of... Read More
Don't knock it; "Keep It Simple, Stupid" is a great... Read More
When designing your website, remember to avoid useless and confusing... Read More
The problem with designing your site as a graphic, is... Read More
As my occupation is that of a proofreader, one of... Read More
There can be zillions of reasons why your visitors return... Read More
licensed cleaning services Park Ridge ..The best things don't come easy. - QuotedThe finished web... Read More
Web advertising has taken many forms, including those that appear... Read More
Does website design make a difference in how long people... Read More
I'm sure you've all heard the saying 'Build it and... Read More
In learning webpage design, I encountered many problems that took... Read More
The way you design your web site affects your visitors'... Read More
A search for "web design" on Google returns more than... Read More
Avoid these mistakes and your site will be steps ahead... Read More
One product, one long web page: this kind of web... Read More
We would all like to have the best looking website,... Read More
Websites that have multiple pages usually have a Frequently Asked... Read More
Unless you are an inventor, most likely you are selling... Read More
From my personal experience of around two year as home... Read More
Whether you are planning on having a website built for... Read More
So how do you know when your graphic designer costs... Read More
A Double Ad Tracker is an Ad-Tracker that points to... Read More
In my last article entitled, Maximizing The True Value Of... Read More
Imagine you're going on a blind date. You've heard wonderful... Read More
Not all links are created equal.While all of your links... Read More
Ever browse across a website that took ten million years... Read More
Do your web pages, sales letters or personal presentations include... Read More
When you start building your online business and search for... Read More
Since I made the switch 6 months ago to a... Read More
Choosing the right typeface for your website copy is important,... Read More
Before I discovered the concept of Web site templates, I... Read More
Web Design |