Understanding the Basics

Web Page Construction

Links: <A HREF="url"> anchor text </A>

sample14a.html
[VIEW]

sample14b.html [VIEW]
sample14c.html [VIEW]

sample14a

Please
<A HREF="http://www.exnet.iastate.edu/
HTML/BASIC/testpage.html">Test
Me</A> Now!

sample14b

Please
<A HREF="../webdevelop/testpage.html">Test
Me</A> Now!

sample14c

Please
<A HREF="testpage.html">Test
Me</A> Now!

What am I suppose to see?

Linking to other documents is a paramount feature of the World Wide Web and HTML. Documents can have links to other servers, other documents, subsections within a document, and combinations of all three. The information on a page that a user selects to activate a link to that other location is called an Anchor.

A basic link that includes the full URL of the document you are wanting (sample14a). When the user selects (clicks) on the words "Test Me", the browser will go to the document specified by the URL:
http://www.exnet.iastate.edu/HTML/BASIC/testpage.html
and load the new page. This is called an "absolute path" because you are specifying the entire URL. If you are linking to a document which is on the same server (sample14b), you can leave the server name off and still have the same effect. If both documents happen to be in the same directory (sample14c), you can leave off the directory name and starting "/" as well.

HTML Lessons | Web Basics | Farming the Net


ohioline.gif (3321 bytes)


http://www.ag.ohio-state.edu/~farmnet/
Ohio State University Extension©1999
disclaimer