For example, this code creates a link:
this code | produces this |
My Web Page | My Web Page |
Let's look at each part of that link:
- Says that this is an anchor (
) tag HREF="mywebpage.html">
- Says that the Hypertext REFerence for this anchor is the file "mywebpage.html". When an anchor makes a hypertext reference, we call it a "link".
My Web Page
- This is the text which appears on the web page. This text is usually highlighted in some way, such as coloring it blue, to indicate that it is "hypertext" (if you click on it, something happens).
- Closes the anchor
This is the simplest type of anchor, but it is probably the kind you will use by far the most.