|
To access the contents, click the chapter and section titles.
HTML 4.0 Sourcebook
Structured Tree-Like CollectionsThe next hypertext model is that of a tree or hierarchical document collection. An example is shown in Figure 4.6, which shows a single, extended tree. A real-world example is the Yahoo! collectiona list of Web-accessible resourcesfound at www.yahoo.com. The Yahoo! documents are organized hierarchically. For example, the Yahoo! page covering aids for people with disabilities, shown in Figure 4.7B, lies under the category Companies, listed in Figure 4.7A. This page in turn lies under the category Disabilities, which in turn lies under the category Health. If you have information that organizes itself in a hierarchical manner, this is your obvious approach. Of course, the hierarchy is useful even for small collections (the Yahoo! site is very large). Another more modest example is presented later in this chapter.
The navigation tools required within a hierarchy are different from those needed in a linear collection. For example, the linear concepts of next and previous are no longer meaningful, while links to Up are usually equivalent to the browsers back button, and are often not necessary. Instead, you want links back to a number of locations such as the root of the tree (the link to Yahoo in Figure 4.7the image is clickable), perhaps to a Search or Index tool (essentially a searchable index), and also to important informational pages. The document in Figure 4.7 also has links to a feedback utility (Write Us) and to general informationhere about the Yahoo! hierarchical resource list (Info). Finally, the special-purpose link Add URL lets a visitor register new URLs for inclusion in the collection. Obviously, each collection will have its own special-purpose utilities and links, depending onthe sites function and purpose.
These screen captures are courtesy of Yahoo! Inc. At Yahoo!, the page layout also contains important information. In all the Yahoo! index pages (e.g., Figure 4.7A), links to additional subcategories are indicated by boldface hypertext anchors, while the bracketed numbers after each such anchor indicate the number of items listed in that subcategory. A trailing at (@) character means that the subcategory is actually accessible from more than one place in the hierarchy, implying that the node has multiple parentsthe hierarchy is not a simple tree, but contains cross-linked branches. In this case, the top of the page lists the primary route through the hierarchy to the document; in Figure 4.7B, these are Business and Economics, followed by Companies, followed by Disabilities. The label Disabilities is not an active anchor, as this is the label for the document being displayedthe others provide links back to the indicated pages. This feature can be confusing, and an inexperienced Yahoo! user, unfamiliar with this nonlinear structure and with the meaning of the character @, can sometimes get lost by selecting one of these alternative links upwards. The Yahoo! design undergoes constant evolution, as better page layout models are developed, and as the collection of references growsthe Yahoo! tree(s) keep growing new document branches and leaves to account for the ever-increasing list of resources stored in the Yahoo! database. Overall, the design has evolved comfortably (at least as far as a user is concerned!) within the original structure, which is a good indication of the robust nature of the hierarchical approach. Designing an Effective Hierarchy The hierarchical approach can be extremely useful, but you must be careful to make it easily navigable. Particularly, you do not want the hierarchy to be too deep (too many levels) or too shallow (too few levels). If the hierarchy is too shallow, then there will be too many categories at each level and it will be difficult for visitors to find what they are looking for. At the same time, if there are too many levels in the hierarchy, it will also be hard for visitors to find what they want. After four or five selections down into the hierarchy they will lose confidence (or patience!) that they are on the right track. You should strive to keep the tree depth as shallow as possible, without making each level too unwieldy. A depth of 3 to 5 is ideal, while anything greater than 6 is likely to cause navigational problems. Most importantly, your designthe number of levels and the names and labels of your categoriesmust reflect the material you wish to present and the way you wish to present it: There is no one universally appropriate hierarchical structure. Thus the Yahoo! layout, which works well for Yahoo!, is not where you should startyou should start by looking at your data and determining how you want it to be organized and accessed.
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |