|
Anchor Tag Document Links
Document Section Links Internet Links
Linking is an important part of a web page as it can take you,
instantly to other topics or documents. You may link to other documents,
sections of documents, documents on the Internet. The anchor <A>
tag is used to do create these links. To use and anchor tag in an HTML
document you would use the following syntax:
- <A NAME="XTOPIC">View X topic<A>
Top
You enter this HTML command in your current document:
<A
HREF="filename.htm">Special name<A>
(where file name is the name you have the HTML document saved as and the
Special name is the name you'd like the hyperlink to appear as).
Top
You may want to link to a section of a document and to do this, you can
set anchors and link to the anchor within within the document. For
example, to create a link to a section in a file named Cover.htm marked
with an anchor name of "Interests," you could enter this HTML
code into your document:
<A>
HREF="Cover.htm#Interests">View my interests</A>
(where the (#) pound symbol distinguishes the file name from the
anchor name).
Top
To create a hypertext link on the Internet you need to know it's URL.
A URL, or Uniform Resource Locator gives a files loctation on the web.
To create a link to a document on the Internet with the URL http://www.msn.com
you would use this HTML code:
<A
HREF="http://www.msn.com">Microsoft Network</A>
Top
|