1<spacer type=horizontal size=200>2<spacer type=vertical size=100>3
1
<center> 1 <br> 2 <spacer type=block width=50 height=50 align=middle> 3 <br> 4 </center>
This chapter is rather long and deals with various URL's including WWW URL's (http://), FTP for file transfer protocol (ftp://), newsgroups (news://), straight text files (file://), and javascript execution (javascript://). Additionaly, the anchor tag, <a>, is introduced formally.
Linking to other pages on your WWW site (or another WWW site) is purely a matter of WWW site design:
External links are pretty easy. Assuming that this file is called page1.htm, here is a link to display page2.htm:
  <a href="page2.htm"> Click here for page 2 </a>
The user sees Click here for page 2. When they click, the next page that displays is page2.htm as shown on the href="page2.htm" attribute.
The preceding example illustrates a relative reference in that you do not explicitly mention that page2.htm exists on a specific web site. The browser assumes that page2.htm exists on the last WWW site accessed. That is, note that the browser retains the site URL even as you page through a site and the HTML web page name changes.
An example of an absolute reference (or fully qualified file name) would be:
  <a href=" http://guitarzan.homepage.com/tncc/page2.htm "> Click here for page 2 </a>
Now that you know how to link pages to one another, you must confront the issue of site navigation. This issue deals with how users will find their way around your site and back again.
Some sites offer site maps, [Back] buttons, and Frame navigation bars
Here are some examples of internal links:bbbb
Internal links are fairly simple, too. Here are the 3 preceding internal links:
Note the # symbol. The # symbol means one thing: ... the current page. In one of the Javascript URL samples below, it means stay on the current page. In the preceding internal links, it means that to link to another section of the current page.
In addition to specifying the anchor tag with the HREF="#..." attribute, you must also specify the section of the web page to jump to. To do that, you must use the anchor tag with the NAME="..." attribute as shown:
  <a name="WWW"></a>
Please note that you do not use the # symbol when specifying the NAME.
Use internal links when it just does not make sense to create another HTML file. That is, use internal links when the volume of data is small enough to reside in the same file, yet the number of topics demands some sort of division.
Internal links are used for alphabetical listings like the following that simply take you to phone listings within the same HTML file:
Do not use internal link if it makes an HTML file especially large and unwieldy for the user to naviagte or for you to maintain. For example, this HTML file is becoming too large to easily maintain.
  <a href="http://www.microsoft.com"> Click here for Microsoft's WWW site </a>
  <a href="ftp://ftp.microsoft.com"> Click here for Microsoft's FTP site </a>
<a href="javascript:window.alert('Hi mom')">click here</a>
<A HREF="#NOWHERE" onClick="window.open('htmlch67.htm', 'htmlWnd', 'width=370,height=240,status=1')">click here</A>
<A HREF="javascript:window.open('htmlch67.htm', 'htmlWnd', 'width=370,height=240,status=1')">click here for pop up window</A>
<a href="#NOWHERE" onMouseOver="window.status='A picture of a club';return true">
<img src="club.gif" alt="Tooltip: club.gif">
</a>
When shape=poly, you may use the coords attribute to specify many coordinates for irregular shaped sections of an image.
What the book does not stress strongly enough is that searching of HTML documents requires server side programming in PERL, C, or JAVA which is well beyond the scope of this course. Therefore, I leave the reading of this section of the book to you.
The concept assumes that you are familiar with sub-directory hierarchies and that, furthermore, you have a number of sub-directories on your WWW site that hold different kinds of files.
With the <base> tag, you specify the start directory to use for all relative URL references, even if that directory is different than the directory that the currently displayed page is found.
An example follows:
<html>
<head>
<title>Yadda, yadda, yadda...</title>
<base href="/docs/">
</head>
...
</html>
META tags are tags that provide data about tags. That is, META tags provide internal documentation (the user does not see it) about who, what, and when created/modified the HTML.
The <meta> tag has 2 attributes:
The "keywords" name is used to tell search engines which words to index an HTML page by:
<meta name="keywords" content="guitar, jazz, music">
<meta name="keywords" content="guitar, jazz, music">