Table of Contents Previous Section

Navigation Control in HTML

Suppose you want to display a navigational control at the bottom of each page of your application, something like this


Figure 1. Navigational Control

The HTML code for this control is:

<HTML>
<HEAD>
    <TITLE>World Wide Web Wisdom, Inc.</TITLE>
</HEAD>
<BODY>
Please come visit us again!
<!-- start of navigation control -->
<CENTER>
<TABLE BORDER = 7 CELLPADDING = 0 CELLSPACING = 5>
    <TR ALIGN = center>
    <TH COLSPAN = 4> World Wide Web Wisdom, Inc.</TH>
    </TR>
    <TR ALIGN = center>
    <TD><A HREF = "http://www.wwww.com/home.html"> Home <a></TD>
    <TD><A HREF = "http://www.wwww.com/sales.html"> Sales <a></TD>
    <TD><A HREF = "http://www.wwww.com/service.html"> Service <a></TD>
    <TD><A HREF = "http://www.wwww.com/search.html"> Search <a></TD>
    </TR>
</TABLE>
</CENTER>
<!-- end of navigation control -->
</BODY>
</HTML>

Thirteen lines of HTML code define the HTML table that constitutes the navigational control. You could copy these lines into each of the application's pages or use a graphical HTML editor to assemble the table wherever you need one. But as application size increases, these approaches becomes less practical. And obviously, when a decision is made to replace the navigational table with an active image, you must update this code in each page. Duplicating HTML code across pages is a recipe for irritation and long hours of tedium.

Table of Contents Next Section