Posted by touhid | Posted in HTML, Website Design & Development | Posted on 01-10-2009
A site map is one page or sometimes a set of pages, which lists all, or most of the pages on a web site.
If your web site is small, consisting of only a few pages, you can have links to all these pages from one page – the site map.
On the other hand, if your site consists of hundreds of pages segregated into directories (hopefully!), the site map of your web site might run into 2 or more pages.
As the term suggests a site map is a map of the web site and can be a list of links or a more complex representation. However, my advice is to keep the site map as simple as possible.
Here is a basic site map of webdevelopersnotes.com
(I have only displayed the important links)
- Home page
- Tutorials
- Web design Templates
- Web Graphics Design
- Web Development Tips and Tricks
- Web Page Design
- Web Development Resources
- Web Development Services
- Feedback
- Link to WebDevelopersNotes.com
- The Webmaster
- Privacy Policy
- WebDevelopersNotes.com Charity Drive
- WebDevelopersNotes.com Disclaimer
Creating a Site Map for your web site
The simplest way to create a site map is to use the HTML Unordered Lists tag <UL>. The tag can be employed to create simple one-level lists and also display the hierarchical structure of your web site by nesting lists if your site s more complex.
The Unordered Lists tag <UL> supports a neat attribute called Type with which you can specify the type of bullet you want for the list – disc, circle or square.
Let us look at an example:
- Electronics
- DVD Players
- V.C.R.s
- Computers
- Desktops
- Laptops
- Palmtops
- Portable MP3 players
- T.V.s
- Automobiles
- Cars
- Buses
- Motorcycles
- Scooters
- Furniture
- Beds
- Tables
- Chairs
The HTML code for the above is:
<ul type="disc"> <li>Electronics <ul type="square"> <li>DVD Players</li> <li>V.C.R.s</li> <li>Computers <ul type="circle"> <li>Desktops</li> <li>Laptops</li> <li>Palmtops</li> </ul> </li> <li>Portable MP3 players</li> <li>T.V.s</li> </ul> </li> <li>Automobiles <ul type="square"> <li>Cars</li> <li>Buses</li> <li>Motorcycles</li> <li>Scooters</li> </ul> </li> <li>Furniture <ul type="square"> <li>Beds</li> <li>Tables</li> <li>Chairs</li> </ul> </li> </ul>
Note how the hierarchical structure is displayed using nested Unordered Lists <UL> tag. We have also used the TYPE attribute and specified the kind of bullet we want for each list.
Why is a Site Map important for a web site?
An important point to remember ALWAYS is that people come to your site looking for information.
Net surfers are a ruthless lot. If they find information quickly, they stick around; else, they click the “Back” button on the browser, close the browser window or simply go to another web page.
So the most important reason a site map is indispensable is because it helps the visitors to understand the site structure and layout and thus, quickly gain access to what your site has to offer.
A site map is a page wherein the structure of a web site is clearly shown to a visitor. They can then choose the page to which they want to go with just one click.
In addition to the advantages a site map offers to “human” visitors, it is also important for “robotic” visitors from search engines. As a web developer your aim should be to get all public pages on your web site in the search engine database. Since a site map carries links to all pages from one page, it is an ideal candidate to submit to a search engines. Submission of the site map to a search engine might help in getting all web pages indexed quickly by the search engine. I may be incorrect since I have no data to support this point but it just seems logical. However, on a similar note, there are search engines that limit the depth of searching on a web site from the homepage. For example, if you have a page buried deep inside the directory structure on your web site, it might not be picked up by such search engines. In such cases, the importance of a site map is that it pushes the search engine to go directly to the page instead of hunting for links.
There have been clients of mine who got back saying that their site map ranks higher for a particular key word that the actual page which has been optimized for that key word. Some of them like this while others mention that they would prefer of visitors go directly to the actual page.
So if you don’t like the site map on your web site to rank high, you can always use the NOINDEX attribute of the META tag.
Two important links:
1. How does your web site appear in text web browsers (and, thus, to robots) – go to the Lynx viewer -> http://www.delorie.com/web/lynxview.html. This is such a good tool. It lets you see your site how a search engine would.
2. To know how may pages Google has indexed on your web site type “site:mywebsite.com” in the Google search field.
Large web sites might have hundreds of pages. For such sites, the developer might create dynamic and interactive navigations JavaScript drop down menus making it easy for the human visitors to go quickly to a desired web page. However, a robotic visitor would not understand such menus at all and thus, it is very important of such web sites to have site maps.
If you use a JavaScript navigational drop down menu on your site make sure you include a link to the sitemap page inside the <NOSCRIPT> tag. So if a visitor is using a browser which does not support JavaScript or has JavaScript turned off, he or she will at least know the site structure.
A site map helps you in planning your site before you even start creating it. Once you decide which pages you want, your job is actually made a lot simpler when you start designing the web pages. At the beginning of each web site project, I ask my clients for the site structure. This is simply the site map. A site structure helps me in understanding the number of pages on the site and how they would be laid out. For example, if there are only 6 main pages, I would put links to these pages in a horizontal navigation menu. However, if there are more than 12 main pages, I would prefer to go for the standard left hand side navigation menu system as it would be difficult to put 12 links horizontally in one row.
Thus, another important point is that a site map should actually be the first step in planning for a web site.
A final point to push my argument of the importance of a site map – Google in its Webmaster Guidelines recommends that sites should have a site map.
Important points for a good site map
Here are some hallmarks of a good site map, which helps visitors at finding information quickly on your web site
- The site map should be the simplest page on your web site.
- Do not give a fancy name to the site map link such as “Web Site Tree” – keep it as “Site map”, this way your visitors understand immediately what you mean.
- You should always avoid “dynamic” site maps. Those in which the visitors have to “work” their way to get hold of information. Remember, the reason visitors comes to a site map page is because they are lost. To make them work again for something that you can display as a simple static link will just kill the purpose of having a site map.
- If the site map is list of text links, be sure to use the TITLE attribute of the anchor tag and include keywords inside it.
- It is a good idea to put a sentence describing the page contents below the link for that page on a site map.
- A site map should not be the primary navigation on your web site it should complement it.
- A link to the site map page is very important and all pages should carry this link. The site map link can be included with other links in the main menu on your web site or placed at a section on the web page from which is it clearly visible.
- Other important aspects on a web site should complement site maps. For example, the link color for visited links should be different from that of non-visited links so that visitors understand which pages they have already seen and thus, save time.
Site maps and other nice ways to help visitors quickly locate information on your site
In addition to including a site map on your web site, you should also to display at the top of each web page, the hierarchical position of that web page. You can find this on this page too – just above the title “Site maps and other nice ways to help visitors quickly locate information on your site” you can find the hierarchical position on this web page on www.webdevelopersnotes.com.
If your hosting service allows you to create your own error pages, you can develop each of the error page (esp. the 404 Page Not Found) as a site map. I usually do this for errors, 400, 403, 404 and 500. Click for details on server error codes.
A question: if the web site is small and all pages link to each other… is there a need for a site map?
Well, you should always have several paths to go to a page to assist both human as well as robotic visitors and there is no harm in actually creating links to pages… is there?
Finally, it’s always a good idea to use a “Search” on your web site. There are several ways you can go about this – write a search program (script) for your web site is a server-side language, download a free, shareware or a paid one and install it on your web site, use one of the several services available on the web, including Google search!
Now you might ask why we need a site map once we have a web site “search” feature? Remember, a site map is created for both “human” and “robotic” visitors. A human would know what to search for but you need to help the webbot to locate pages.
Scripts to create Site maps for your web site
I have describe before how you can create a site map using the HTML Unordered list tag. However, if you prefer to automate the creation of the site map on your web site you can find several scripts and programs online.
The site map creation programs and scripts differ in features but all result in a good looking site map for your site.
Likno’s AllWebMenus
AllWebMenus allows you to create site maps in HTML format, making your web sites search engine friendly!
You can choose among ready-made templates for the look of your site map and of course you can edit the produced HTML file with your favorite authoring tool to give it your own look and feel.
The best news is that this feature is FREE and no purchase of AllWebMenus is required!
SearchBliss Site Map Generator
Create a site map instantly and make your site surfer friendly and easier to navigate. You may also purchase your own with NO links back to SearchBliss and increase your website “stickiness” by offering this free resource to your own visitors!
FreeFind
FreeFind’s site map creator is integrated with their site search technology and can be used together with their search engine, or separately without the use of their search engine.
SiteMapper
sitemap
sitemap indexes all pages under the current directory and writes an HTML map page to standard output. The code looks for description information for each page in a meta `description’ header; if it doesn’t find one, the page is omitted from the index.
loading...
loading...


