HTML Reference Guide


Tag Index | Content List | HTML FAQ

<A> ... </A> Anchor

Description:

The anchor tag allows you to create links to other internet pages, documents and downloadable files. Anything that appears between the begin and end anchor tags will take you to that address when clicked.

Attributes:

href- stands for hyperlink reference. It references the address of the destination you want to go.

mailto - creates a link for e-mailing. The email address is listed after this attribute.

name - names the bookmark that will be referenced later to link to in the same page.

target - if using frames, this specifies what frame or window to load the link into.

Example code:

<A HREF="http://www.webspawner.com">
WebSpawner
</A>

Result:

WebSpawner

Example code:

<A HREF="http://www.WebSpawner.com">
<IMG SRC="image.gif" WIDTH=25 HEIGHT=25 ALIGN=BOTTOM>
WebSpawner
</A>

Result:

WebSpawner

Example code:

<A HREF="mailto:emailaddress@host">
Name
</A>

Result:

Name

Example code:

<A HREF="#web">
Move bottom of page (web)
</A>

Result:

Move to bottom of page

Example code:

<A HREF="document.html#web">
Web Projects
</A>

Result:

Web Projects

Example code:

<A NAME="web"></A>
<H2>
Web Projects
</H2>

Result:

Web Projects

See Also:


  Free Web Pages | Super Links | Members Directory | Search | Privacy Statement | Site Map | Contact Us
Services: Create Free Web Page | Free Home Page | Free Web Page Builder
Free Web Page Templates | Free Web Sites | Free Web Space
Copyright © 1996 - 2006 WebSpawner.com. All rights reserved.