A Simple Hypertext Link
At this point, you have already learned some basic HTML formatting tags.
Making hypertext links is just a matter of learning how to use another
tag, the anchor tag.
To start with, here is a simple link to
a list of my favourite foods.
CFN users can look at the source for this link by pressing the \ key.
- The word or phrase which will be the link (let's call it the link
phrase) is preceded by the tag <a href="filename"> and ended
with the tag </a>.
- The anchor tag has what is called an attribute: this is the
href="filename" part. An attribute is a modifier which gives
more specific information about what a tag does.
The anchor tag can have other attributes besides href, one of
which (the name attribute), we'll see later.
- The filename which is specfied in the href attribute is the name of
the file which the link leads to. In this simple example, we just
have a filename.