|
The "anchor" tag includes the
URL or Internet address to link to. The format for the "anchor"
tag is shown in the area below.
Notice that the anchor tag is more complex than tags used previously.
The "anchor" tag is still identified with < and >
symbols. However, the A (for anchor) is followed by the URL to be
linked to when the "hypertext" is clicked.
Notice the HTML for our second Web page at the bottom of this page.
Use this HTML code and redo the file named, "pagetwo.html"
Click on the "View" button to see what your Web page should look
like so far.
<A HREF="URL">hypertext</A>
Remember that format for URL is: tool://domainname/path/file
<A HREF="http://www.yahoo.com">Click
here for Yahoo</A>
http:// is the tool
www.yahoo.com is the domainname
In this case there is no path or filename.
<A HREF="gopher://gopher.umich.edu>
Gopher to University of Michigan</A>
gopher:// is the tool
gopher.umich.edu is the domainname
In this case there is no path or filename.
<A HREF="ftp://ftp.microsoft.com/desktop/wordfile.doc">Download
from microsoft</A>
ftp:// is the tool
ftp.microsoft.com is the domainname
desktop is the path
wordfile.doc is the filename.
|