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.
executive chauffeured services Bradford .. Madison to Airport carSo you want to build a website here I will... Read More
Content is undoubtedly the most important element of a website.... Read More
Argh, where's the contact button?! Believe it or not, some... Read More
Your web site should be-visitor friendly to navigatesearch engine friendly... Read More
One product, one long web page: this kind of web... Read More
Do you have a website? If so, you need an... Read More
If you think it's simply a case of who will... Read More
Home-based businesses need a strong web presence to combat the... Read More
1. Size does not equate to competencePeople sometimes assume a... Read More
In this article I will give a few tips of... Read More
As a web designer, I have a personal interest in... Read More
Imagine spinning someone around so profoundly and for so long... Read More
The importance of choosing your website keywords carefully is very... Read More
About two years ago, I had a go at commercial... Read More
When designing elements for your webpage, you will often be... Read More
Surfing the internet is basically an information-fest! From intellectual discussions... Read More
QUESTION: We promote our web site in all our... Read More
Page ranking by search engines such as Google are not... Read More
A question we frequently get asked is, "how do we... Read More
The Questions You Should Be Asking ? The Answers You... Read More
First off, I am a designer. Now you're thinking, here's... Read More
Tips to brand your websiteInclude your logo in all pages.... Read More
Wether you design your business brochures, flyers, web page, or... Read More
If you have a business, big or small you may... Read More
Back to basics. Forget funky design, good copywriting is the... Read More
O'Hare Chicago prom limo ..Home PageHome page should clearly indicate what the site is... Read More
"How to turn "slightly interested" customers into "I've got to... Read More
What are websites? Are they sales tools for vendors and... Read More
Making your site accessible means making it available to be... Read More
1. Use .gifs rather than .jpgs. GIFs are smaller in... Read More
You spend time and money promoting your website; but what... Read More
Most web designers and web design companies will try to... Read More
When a prospect lands on your website will he or... Read More
Web Design is a very subjective process. Your idea of... Read More
Most of us at times need advice on different aspects... Read More
I once created a notepad-like editor. It is possible with... Read More
What the heck is going on lately? Most internet websites... Read More
Congratulations! You've got a brand new site and it's doing... Read More
So you want to build a website here I will... Read More
If you are familiar with my work, then you have... Read More
Are you thinking that it is about time your small... Read More
In my last article entitled, Maximizing The True Value Of... Read More
No question about it, web design is an art. Finding... Read More
Are you using the best colors for your web site?... Read More
My site is working fine. The links work. Content is... Read More
For most people graphic design does not come easy. Unfortunately... Read More
Don't mess with those links! When you're designing your site,... Read More
In this article you will find the parallel between two... Read More
A "template" is simply a design format which you can... Read More
Are you a student of graphic design? If you have... Read More
Web Design |