<A ...>

Usage Recommendation
thumbs up use it

  • HREF: URL you are linking to
  • NAME: name a section of the page
  • TARGET: which window the document should go in
  • TITLE: suggested title for the document to be opened
 

<A ...> is the cornerstone of HTML, the tag that makes hypertext hypertext. <A ...> is the tag you use to make hyperlinks: the text that you can click on in your web browser to go to another web page.

For example, this code creates a link:

this code produces this
<A HREF="mywebpage.html">My Web Page</A>
My Web Page

Let's look at each part of that link:

<A
Says that this is an anchor (<A ...>) tag

HREF="mywebpage.html">
Says that the Hypertext REFerence for this anchor is the file "mywebpage.html". When an anchor makes a hypertext reference, we call it a "link".

My Web Page
This is the text which appears on the web page. This text is usually highlighted in some way, such as coloring it blue, to indicate that it is "hypertext" (if you click on it, something happens).

</A>
Closes the anchor
This is the simplest type of anchor, but it is probably the kind you will use by far the most.




About the Author
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.