Learning HTML
Chapter 4 - HyperText Links

4.5 Review

This section covered the anchor tags for creating hypertext links in HTML documents. The following are examples of the use of this tag (text indicates the text which is highlighted as the link):

<A HREF="http://www.dickinson.edu"> text </A>
An absolute reference to the main page of a WWW server.

<A HREF="http://www.dickinson.edu/departments/store"> text </A>
An absolute reference to a path on a WWW server. This would display the default file ( index.html ) in that directory.

<A HREF="http://www.dickinson.edu/events.html"> text </A>
An absolute reference to a specific file.

<A HREF="2.html"> text </A>
A relative reference to the file name 2.html which is on the same server and directory as the current document.

<A HREF="4.html#sections"> text </A>
A reference to the section review in the file 4.html.

<A HREF="#review"> text </A>
A reference to the section review in the current document.

<A NAME="review"> text </A>
Creates the section named review at the highlighted text.

In the next chapter, we'll look at how colors and graphics can be used to enhance your html documents.


Learning HTML
www.dickinson.edu/~dempsey
Last updated 6/8/2001
Copyright © 2001 Paul Dempsey