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.
Airbnb cleaning service Arlington Heights ..The problem with designing your site as a graphic, is... Read More
How many times have you clicked on a website only... Read More
As web designer my self, I have had the unfortunate... Read More
Increasing the length of time a visitor is on your... Read More
Unarguably, the most important part of your website is content.... Read More
Setting up a survey on your site is extremely simple... Read More
Before deciding on which web design company to choose, you... Read More
There are several very good reasons why you should consider... Read More
Most NGOs (Non-Governmental Organizations) don't understand these important aspects of... Read More
There are often many mistakes encountered when creating a webpage... Read More
Are you using the best colors for your web site?... Read More
I often wonder how serious people are when it comes... Read More
When you're self-employed, choosing a website designer is a crucial... Read More
Just because you are a small business with an even... Read More
First you need original content. Content is the heart beat... Read More
How many of the visitors to your web site take... Read More
Your web site has been up for a few months... Read More
The most important person that you need to please when... Read More
Many people today are tired of the Microsoft software that... Read More
Any design on a web application involves the effective input... Read More
Getting traffic to your website is not the only factor... Read More
Websites, there's literally billions of them out there in cyber-space.... Read More
See, works every time. Seriously now, for some reason people... Read More
Seeing is believing.One trick to increase your visibility as well... Read More
Owning your own website is a must if you are... Read More
reliable maid service Winnetka ..Your web site is like your car. Both are significant... Read More
The icons in an application are the soul of the... Read More
Square buttons, round buttons, flashy buttons ? will they match... Read More
Does your website make a good first impression? Is the... Read More
Drop Capitals are frequently used in many newspapers, books and... Read More
Choosing a web designer can seem like a daunting task.... Read More
One of the challenges of moving a web site up... Read More
Effective navigation stands out. It's clear, obvious, and highly visible.You'll... Read More
I ask myself that question about once a month.My website... Read More
The way you design your web site affects your visitors'... Read More
With so many new websites going up, it is hard... Read More
1. Don't load your web site with a lot of... Read More
In today's world, a web site is virtually mandatory for... Read More
This is a very perfunctory look at the website code... Read More
Making a poorly designed website is one of the easiest... Read More
Never put form over function. Why? Because it's crucial that... Read More
There are more than billions of Web Sites, running Online... Read More
In this article you will find the parallel between two... Read More
When you're self-employed, choosing a website designer is a crucial... Read More
Websites, there's literally billions of them out there in cyber-space.... Read More
Audio can provide an added dimension to your site. It... Read More
The most popular method to build webpages today is to... Read More
Well, a logo for your business. Why is it important?... Read More
You spend time and money promoting your website; but what... Read More
Flash is a powerful technology that can help you create... Read More
Web Design |