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.
shuttle to Midway Beardstown .. Lockport Chicago limo O’HareWe will take a look at why your visitors may... Read More
Colors have long been known to have psychological affects on... Read More
When JV Media Design was formed, the year was 1995... Read More
One of the most popular methods of traffic generation is... Read More
I can't figure out people who have products or information... Read More
Now that you have decided that it is time to... Read More
Does website design make a difference in how long people... Read More
Do know your audienceIt's important to know your audience. If... Read More
While few companies can boast as we do that our... Read More
How often, men, have you come home to find the... Read More
No question about it, web design is an art. Finding... Read More
When building your website you might not have a large... Read More
There are six important characteristics that can play a major... Read More
My mother used to take me along when she visited... Read More
One visit does not make a sale. Be sure to... Read More
Do you have a website? If so, you need an... Read More
Should Generating Revenue From A Website Be The Prime Motivator?... Read More
If you own a web site or if you are... Read More
Being a writer, when I was asked to do some... Read More
We all want high impact graphics for our Web sites... Read More
There is no doubt that reprint articles can serve lots... Read More
There is a widespread confusion among lots of new website... Read More
Since I made the switch 6 months ago to a... Read More
Did you know that many folks make "buying decisions" when... Read More
As web designer my self, I have had the unfortunate... Read More
Green Bay Hummer H2 SUV rentals ..Since you'll spend lots of time and money to create... Read More
1. Use .gifs rather than .jpgs. GIFs are smaller in... Read More
Most of us know that we need to advertise our... Read More
How often, men, have you come home to find the... Read More
We have all seen websites showcasing their testimonials either spread... Read More
The Psychology of ColorAre you using the best colors for... Read More
Have you heard of 'Babel Fish'?It's a service provided by... Read More
The effective design is this one, which is maximum simplified,... Read More
So your web site's online and you've got high rankings... Read More
Conventional Wisdom states you should use Sub-Directories to organize your... Read More
The question that I most frequently hear from people is... Read More
Novice and professional designers alike ? you may probably be... Read More
This article may come as a surprise to you.Especially since... Read More
Websites, there's literally billions of them out there in cyber-space.... Read More
Many businesses want a simple website where they tell people... Read More
Have you ever thought about the real stories behind all... Read More
A web site builder can be a real life saver... Read More
When it comes to marketing your website, you should really... Read More
You've come up with a great product. You've got the... Read More
What do the key words represent?Key words - these are... Read More
You have an idea for a website and you are... Read More
When designing your website, remember to avoid useless and confusing... Read More
If one more business owner tells me their website sucks... Read More
Remember your vision for your company and the brand or... Read More
Website Design Usability Tips1. Getting to know about audience membersYou... Read More
Web Design |