|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
Alternative HTMLOne of the great features of HTML is that it enables you to provide alternative content if your primary content is not viewable. The HTML instruction that places an image on a page, for example, also supports the display of a text-based alternative to the image for users with text-only browsers, for users who have turned off image loading on their graphical browsers, or for users who use non-visual browsers. As you read the chapters on HTML in this book, make note of the ways you can provide alternative content on your pages. Using these techniques will also help to maximize your audience. Alternative HTML PagesSometimes users cannot view an entire page. One case of this is a framed page. Although most users will probably be using a browser that can process frames, you still need to be sensitive to frames-challenged browsers. You can do this by creating non-frames versions of your framed pages. Many sites that use frames provide links to pages that contain the same information but dont use frames (see Figure 2.9). Alternatives to ScriptsScripts are like images in that a user may have a browser that does not support a scripting language, or the user may have turned off the browsers ability to parse and execute scripts. For these reasons, you should be sure to include alternative content in the event that your scripts cant run on a users browser. Fortunately, HTML 4 makes this a fairly simple matter with the <NOSCRIPT> and </NOSCRIPT> tags. Any content you place between these tags will be rendered by a script-capable browser when it is unable to run a script. Browsers that dont support any scripting languages will ignore the <SCRIPT> and <NOSCRIPT> tags and simply render what you have placed between the <NOSCRIPT> and </NOSCRIPT> tags. Thus, no matter what kind of browser a user has, your <NOSCRIPT> content will be displayed when it is appropriate.
Desirable Page ElementsAs users traverse the Web, they become accustomed to seeing certain items on pages. They come to rely on these items being present to enhance their Web browsing experience. This section looks at a few common page elements that are also good end-user services. Last Updated Date
Everyone craves fresh content, so it makes sense to have some kind of freshness dating on your pages. A last-updated date tells visitors how recently the information on a page has changed (see Figure 2.10). Assuming they remember the last time they visited your page, regular visitors can use the last-updated date to decide whether any new content exists that they need to check out.
Contact InformationUser feedback is important to your efforts to maintain and improve your pages. Many Web pages have contact information at the bottom, typically the email address of the Webmaster or the page author. Others take you to a separate HTML page to collect feedback (see Figure 2.11). These email addresses are often hyperlinked so that users can click them and compose a feedback message.
Navigation ToolsIt frustrates users when they get that you cant get there from here feeling. To avoid the Web equivalent of this, it is imperative that you place navigation tools on your pages. Depending on where users are, they will have different expectations about which navigation tools should be available.
A visitor hitting the home page of a site will most likely be looking for some type of clickable image or imagemap that can take her to the major subsections of the site (see Figure 2.12). A home page that is well designed will also include a set of hypertext links that duplicate the links on the imagemap. This enables people with text-only browsers, or people with image loading turned off, to navigate from the home page as well.
When on an inside page of a site, users typically look for navigation bars either at the top or bottom of the page (see Figure 2.13). Some pages have navigation bars at both the top and bottom so that the user has the option of using the closest one. In other cases, a page will have a set of links across the top of the page that point to the major areas of the site, and another set along the bottom of the page pointing to functional areas.
|
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. |