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.
Lincoln Stretch rentals Alsip ..The internet is full of web design companies pleading for... Read More
What is the relationship between Marketing and Web designing? How... Read More
Websites that have multiple pages usually have a Frequently Asked... Read More
When it comes to marketing your website, you should really... Read More
Colors convey emotions and emotions heavily influence the decision-making process.... Read More
The "Wow" factor that accompanied the introduction of streaming media... Read More
If you are one of those who wonder how people... Read More
The first immutable law of effective navigation: It's gotta be... Read More
~A man [woman] is a success if he [she] gets... Read More
Web design is a very competitive area and there is... Read More
Are you looking for somebody to build you a website,... Read More
You have only 10 seconds to impress your potential buyer.... Read More
If one more business owner tells me their website sucks... Read More
This article gives free tips on how to find a... Read More
It's a fact, Page Not Found, known as a 404... Read More
Building a website that is exactly what you want and... Read More
One of the most popular methods of traffic generation is... Read More
What is a Website Template?Many smart and savvy businesses are... Read More
The Internet has seen an explosion in so called 'lance'... Read More
Here are a few programs I can't do without. They're... Read More
Even if you're not an accomplished webmaster you can still... Read More
A few years ago a lot of websites utilized frame... Read More
Content is king. Without content your website is an empty... Read More
1. DO NOT use excessive graphics or banner images on... Read More
Clutter: Too much noise, too much text, and too little... Read More
Western Springs shuttle limo ..This is a very perfunctory look at the website code... Read More
I've seen articles (and websites) that suggest you can buy... Read More
I do site reviews. Needless to say, I see a... Read More
You have probably viewed many Flash-based components while surfing the... Read More
Hire a designer or a programmer for your website is... Read More
Websites that have multiple pages usually have a Frequently Asked... Read More
Effective navigation stands out. It's clear, obvious, and highly visible.You'll... Read More
Creating your own website is actually easy in today's world... Read More
7. Create high quality content - make clear points with... Read More
STEP 1:Do your homeworkPlan and think about your content. Think... Read More
When creating an e-cover the what's the first thought that... Read More
No matter what product or service you're promoting, unless you... Read More
Being a writer, when I was asked to do some... Read More
This is the second part of a two-part article about... Read More
1. DO NOT use excessive graphics or banner images on... Read More
I always have people asking me if I know of... Read More
In my last article entitled, Maximizing The True Value Of... Read More
In retailing there is a saying that sales are made... Read More
I get the occasional web design lead from my website.... Read More
Creating an appealing, functional, and effective Web site is much... Read More
What is web usability & why is it important?Web usability... Read More
The Questions You Should Be Asking ? The Answers You... Read More
The internet is full of web design companies pleading for... Read More
This article may come as a surprise to you.Especially since... Read More
So you're on the computer, as usual. Your eyes are... Read More
Web Design |