HTML Hyperlink | |
Example 1: Link to an external document.
HTML:
<a href="sample.html">This link</a> takes you to a document called "sample.html."
Display:
This link takes you to a document called "sample.html."
Example 2: Link to an anchor within the same document.
HTML:
<a href="#atag">This link</a> takes you to a pre-determined location on the same page.
Display:
This link takes to a you to a pre-determined location on the same page.
Note that you may also link to an anchor within an external document.