Two Ways

Anchor Links – Only the Basics Please

Demystifying Anchor Links. Only the Basics Please. BryanBracken.com

 

HyperLinks – Anchor Text.

I will not be explaining bookmarking.

The “<A>” Tag Stands for Anchor.

You can use an Anchor in two ways one for creating a link to another web page or site when used in conjunction with the href attribute or for creating a bookmark within your web page using the name attribute.

<A HREF - Opening tag.

</A> – Closing Tag.

HREF – Specifies the target URL of the link.

The default colors of the links in all browsers will be:

Unvisited: Underlined and Blue.
Visited:
Underlined and Purple.
Active:
Underlined and Red.

Examples:

<a href=”index.html”>Home</a>

Home

<a href=”http://bryanbracken.com/”>
BryanBracken.com</a>

BryanBracken.com

<a title=”Home Page Link” href=”index.html”>Home</a>

Home

<a title=”Home Page Link” href=”index.html” target=”_blank”>Home</a>

Home

TARGET – Specifies where to open the target URL.

_blank is for a New Page
_parent is for a Parent when using frame pages.
_top is Whole Page
_self is for a frames page.

There are a number other additions that can be applied to the link but the above are just the basics.

I hope you enjoyed the information on Anchor Links.