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.
recurring maid service Buffalo Grove ..This article is the result of a conversation I had... Read More
Typos, misspellings, hideous grammar, exclamation overkill and run-on sentences all... Read More
Mechanical spiders have to eat. In fact, they usually have... Read More
Your website design may be affecting your sales in ways... Read More
There are many different website design companies, offering different facilities... Read More
Owning your own website is a must if you are... Read More
There are plenty of web sites out there in which... Read More
Just what is web copy? Some people think that web... Read More
I hate to imagine that in your web development project... Read More
When you develop a sales brochure, you have a mental... Read More
It starts off simply; a few HTML pages, a few... Read More
The "Wow" factor that accompanied the introduction of streaming media... Read More
I taught myself HTML back in the mid-nineties and was... Read More
Does your website make you any money? Does it SAVE... Read More
What do the key words represent?Key words - these are... Read More
1. Web site File Structure / File NamingMost search engines... Read More
To build a website, there are four methods to choose... Read More
FIRST IMPRESSIONS. First impressions often leave lasting impressions. Impressions... Read More
1. Repackage your web site content in to different products... Read More
If you have a business, big or small you may... Read More
The object of search engines is to give their visitors... Read More
Whenever singer John Mayer sings his romantic song, "Your Body... Read More
There is nothing wrong with making your own website if... Read More
There are two camps when it comes to flash web... Read More
Not all links are created equal.While all of your links... Read More
premium house cleaning Glenview ..As a webmaster, you want to keep your visitors content... Read More
What is a Website Template?Many smart and savvy businesses are... Read More
See, works every time. Seriously now, for some reason people... Read More
CSS is a new option for website designers that have... Read More
Your business website tells a lot about your company. A... Read More
Almost everything is available on the web? products, services, e-books,... Read More
I once created a notepad-like editor. It is possible with... Read More
For those not familiar with CSS Hacks, they are ways... Read More
If you are reading this, I assume you either have... Read More
From my personal experience of around two year as home... Read More
Whenever singer John Mayer sings his romantic song, "Your Body... Read More
Many web site designers don't design their sites for the... Read More
Don't mess with those links! When you're designing your site,... Read More
Not all links are created equal.While all of your links... Read More
A successful website is something that everyone venturing into the... Read More
When creating an e-cover the what's the first thought that... Read More
These days, it seems that everyone has a website. Unfortunately,... Read More
Making a poorly designed website is one of the easiest... Read More
Before deciding on which web design company to choose, you... Read More
The concept of web designing based on the nature and... Read More
My mother used to take me along when she visited... Read More
The internet is filled with sites and they are good... Read More
10 Ways Web Site Text Can Impact Your Reader's Buying... Read More
Have you seen Jesse James on the... Read More
Think of the people who visit your site as blind... Read More
Web Design |