Links

Linked Web information has two components, a:

On the Web, both targets and destinations are known as anchors, and the connection between them is known as a hyperlink (or simply, a link). Although links provide the core power of the web, they are actually one of the simpler HTML elements, the A (anchor) element:

<A href="URL">
        href = URL of the destination
        name = name of an internal anchor (identifies an internal target)

Let's look at the href attribute first. The href attribute (stands for hypertext reference) specifies a target URL to retrieve when the user clicks on the link. For example, if you want to link the text phrase "Go to the PUBSNET Website" to a URL http://www.grantcom.us, you'd specify:

<A href="http://www.grantcom.us">Go to the PUBSNET Website</A>

Notice that the A element surrounds the 'clickable' object, which in this case is text. If you wanted to link the image file named "pubsnet-logo.gif" to the same URL, you'd specify:

<A href="http://www.grantcom.us"><img src="pubsnet-logo.gif"></A>

Let's try it out...

Copyright © 2001 Michael J. Doyle
All Rights Reserved.

Designed & Developed by Mike Doyle
using Macromedia Dreamweaver & CourseBuilder

See Mike's Training Schedule for
HTML, Dreamweaver, & CourseBuilder Courses


Email Mike Doyle