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.
shuttle from O'Hare Brocton .. Lockport Chicago limo O’HareWhen you design a website how do you start ?Do... Read More
Everybody talks about the importance of testing your sales copy... Read More
1. Don't load your web site with a lot of... Read More
A few years ago a lot of websites utilized frame... Read More
Designing your website means you have to be creative, plan... Read More
The most important person that you need to please when... Read More
Gone are the days when you had to rely on... Read More
The concept of web designing based on the nature and... Read More
With an increasing number of employment portals emerging, it is... Read More
Do your web pages, sales letters or personal presentations include... Read More
Content is the most important part of any website.The Internet... Read More
In today's world, a web site is virtually mandatory for... Read More
In the early years of the internet the actual design... Read More
Web sites that feature products ? especially furniture or other... Read More
Part one of this article is available at ... Read More
Have you seen Jesse James on the... Read More
If you are anything like me, your website is a... Read More
In this article, I will attempt to cover the basics... Read More
This article gives free tips on how to find a... Read More
Color is one of the most important but least understood... Read More
Argh, where's the contact button?! Believe it or not, some... Read More
Choosing a web designer can seem like a daunting task.... Read More
To build a website, there are four methods to choose... Read More
We've all surfed the web and seen some awful web... Read More
Web design is a very competitive area and there is... Read More
Chicago charter limousine service Hickory Hills ..Sooner or later every small or medium business owner realizes... Read More
To explain my point I need to first confuse the... Read More
I hate to imagine that in your web development project... Read More
Square buttons, round buttons, flashy buttons ? will they match... Read More
To build a website, there are four methods to choose... Read More
Increasing the length of time a visitor is on your... Read More
Geared Up with a website and lots of energy to... Read More
Remember the day that you got your new computer (or... Read More
Even after you've managed to bring traffic to your site... Read More
Are you a student of graphic design? If you have... Read More
Flash is a powerful technology that can help you create... Read More
With so many different configurations internet users have their computers... Read More
For online businesses with their main goal of selling products,... Read More
Probably you know someone who has created a web site... Read More
Are you building your website? If so, STOP! Take a... Read More
You have identified that to have an internet prescence would... Read More
There are many different website design companies, offering different facilities... Read More
The Psychology of ColorAre you using the best colors for... Read More
A picture is worth a thousand words.And it still is... Read More
If you have a web site to which people pay... Read More
By following feng shui guidelines and techniques, you can build... Read More
One of the challenges of moving a web site up... Read More
Customers will form an opinion of your business as soon... Read More
Being a writer, when I was asked to do some... Read More
Building a website that is exactly what you want and... Read More
Web Design |