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 Linknet Marketing Resource Library
Rick Hendershot is a marketing consultant, writer, and internet publisher who lives in Conestogo, Ontario, Canada. He publishes several websites and blogs, including The Linknet Network of Websites. This network provides an inexpensive way to advertise your website, and get as many as 100 low cost links.
Ever wonder how HTML color codes are put together? For... Read More
If you have a business, big or small you may... Read More
Whether you are planning on having a website built for... Read More
The following list of websites is the best compilation of... Read More
CSS is a new option for website designers that have... Read More
Projecting a professional image is paramount to your website's success.... Read More
You've come up with a great product. You've got the... Read More
New Web sites are springing up online by the millions.... Read More
Making a successful online business can be a long and... Read More
If you are familiar with my work, then you have... Read More
We can't emphasize enough the importance of including keyword-rich content... Read More
Last Thursday afternoon I was working on a garage door... Read More
Websites, there's literally billions of them out there in cyber-space.... Read More
A highly effective website will always reflect its highly effective... Read More
If you own a web site or if you are... Read More
An "include" file is a piece of code that can... Read More
A website should firstly be searched out by visitors before... Read More
Most web designers and web design companies will try to... Read More
1. Lack of overall strategy and clear definition of success:Most... Read More
Want to know what the worst thing to say on... Read More
Your home page is the most important page of your... Read More
Content is king. Without content your website is an empty... Read More
Everyday we hear that another company goes out of business.When... Read More
1. Web site File Structure / File NamingMost search engines... Read More
Many websites make the mistake of being all flash and... Read More
Design sells. It's something that all of us know, but... Read More
There are literally thousands of different options, styles and formats... Read More
An attractive and user-friendly Web site is crucial to attracting... Read More
The first immutable law of effective navigation: It's gotta be... Read More
Do you want to use unsafe web colors without offending... Read More
Out there in the WWW there are thousands sites using... Read More
There is nothing wrong with making your own website if... Read More
There are many ways to add fancy bells and whistles... Read More
Don't just put your slogan in the title tag when... Read More
When creating an e-cover the what's the first thought that... Read More
They say the eyes are the window to the soul.... Read More
Not all links are created equal.While all of your links... Read More
There is unlimited possibilities when it comes to designing a... Read More
Don't knock it; "Keep It Simple, Stupid" is a great... Read More
Have you ever been to site with so much ad... Read More
Everyday we hear that another company goes out of business.When... Read More
The Questions You Should Be Asking ? The Answers You... Read More
There are lots of websites out there that do little... Read More
Audio can provide an added dimension to your site. It... Read More
The problem with designing your site as a graphic, is... Read More
You have an idea for a website and you are... Read More
We've all read the countless publications about effective web site... Read More
Conventional Wisdom states you should use Sub-Directories to organize your... Read More
Are you building your website? If so, STOP! Take a... Read More
Your web site should always adhere to standards!A professional web... Read More
I am constantly bombarded with all sorts of advertisements, single-page... Read More
The question that I most frequently hear from people is... Read More
If you have a website, you want your visitors to... Read More
One of the most frequent questions I get asked about... Read More
There are many companies who build websites, all of which... Read More
Getting traffic to your website is not the only factor... Read More
CSS is a new option for website designers that have... Read More
As a graphic designer, you are sitting on a gold... Read More
So how do you know when your graphic designer costs... Read More
Before I discovered the concept of Web site templates, I... Read More
Nope. You certainly don't need a website.But you don't need... Read More
Do you remember playing with the jack-in-the-box toy as a... 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
Creating your own website can be fun and easy, as... Read More
I see a lot of mistakes, but here are the... Read More
Web Design |