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.
express cleaning service Highland Park ...Just about every list of the "Top 10 Web Design... Read More
In this article I will give advice and tips of... Read More
Conventional Wisdom states you should use Sub-Directories to organize your... Read More
So you've decided to take the plunge. You know that... Read More
A question we frequently get asked is, "how do we... Read More
Never put form over function. Why? Because it's crucial that... Read More
You have probably viewed many Flash-based components while surfing the... Read More
Whether you're giving a critical sales presentation to a client,... Read More
If you have a business, big or small you may... Read More
There are several very good reasons why you should consider... Read More
The .htaccess file is a control file located in your... Read More
Everything you say and do says something about you. This... Read More
If you are going to have a web presence for... Read More
As a graphic designer, you are sitting on a gold... Read More
QUESTION: We promote our web site in all our... Read More
For online businesses with their main goal of selling products,... Read More
My mother used to take me along when she visited... Read More
Novice and professional graphic designers, we are aware that you... Read More
Have you heard of 'Babel Fish'?It's a service provided by... Read More
You've thought about it and you're ready to go. You're... Read More
When your web site sells more than a dozen items,... Read More
Clutter: Too much noise, too much text, and too little... Read More
The most important person that you need to please when... Read More
Making your site accessible means making it available to be... Read More
Are you a student of graphic design? If you have... Read More
professional maid services Morton Grove ...Are you thinking that it is about time your small... Read More
There are several graphic software packages available to help you... Read More
With an increasing number of employment portals emerging, it is... Read More
Studies done by Jakob Nielson the man touted as the,... Read More
When designing elements for your webpage, you will often be... Read More
Physical therapists have unique web presence needs. An effective site... Read More
Customers will form an opinion of your business as soon... Read More
Website design firms come in all shapes and sizes.When choosing... Read More
I taught myself HTML back in the mid-nineties and was... Read More
No matter what product or service you're promoting, unless you... Read More
There are lots of websites out there that do little... Read More
CNN.com's designers have gone out of their way to make... Read More
In cascading style sheets you can specify how your web... Read More
In this article we will be looking at why you... Read More
Does your website need a re-design? Here are some questions... Read More
As a web designer, I have a personal interest in... Read More
Websites, there are literally billions of them out there in... Read More
Let's face it. Buying products and services from the Internet... Read More
Are you serious about get this website done fast and... Read More
If one more business owner tells me their website sucks... Read More
7. Create high quality content - make clear points with... Read More
I want to give you a free web page template... Read More
The most important person that you need to please when... Read More
Some wise human once said "Learn from the mistakes of... Read More
We all want high impact graphics for our Web sites... Read More
Web Design |