Lesson 5: Hyperlinks
As mentioned at the beginning of this tutorial, a hyperlink or link as it's more commonly called, is a way to move from one location on a web page to another.
A good analogy would be to pretend you're going on vacation.   You go to airport, board a plane, and then arrive at your destination.
Well, in HTML:
- HTML would be the airport itself,
- The plane would be what one clicks on to arrive at his or her destination, and
- The process of flying from the airport to your destination would be the hyperlink.
There are several kinds of hyperlinks, including:
- moving from one page to another within the same website,
- moving from a page in one website to another page in a different site,
- access to an e-mail program, such as Outlook or Lotus Notes,
- access to files on the computer, and
- moving from one part of a page to another part on the same page, commonly referred to as a "bookmark."   Because this one is a bit more complicated than the rest, it is not covered in this tutorial.
Basic structure of any link
Before discussing each of above, let us first see what the basic structure of any link is in HTML:
Now common sense would tell you that you would first tell HTML what you click on, and secondly, where you want to go afterwards.
where "xxx" is your destination and "yyy" represents your plane (the text you would click on to arrive at your destination).
Well HTML doesn't work that way!