You can create hyperlinks on your page that point to:
- A page or file in your directory
- A page or file in a subdirectory
- A location outside your directory (on the Internet).
To create a link to a page or file located in the same directory as the page you are editing, you would simply need to use the relative path, which you would only need to provide the file name in the link:
<a href="pagename.html">Next Page</a>
"Next Page" will be displayed on the page, and clicking on it will bring you to pagename.html. If you would like to change what your link says replace "Next Page" with whatever you want your link to say. Additionally, If you would like to link to a different page, just replace "pagename.html" with the name of that file.
When linking to a subdirectory, you need to use this format:
<a href="subdirectory/pagename.html">Next Page</a>
Creating a link to a page that resides outside your directory, or on the Internet, you would simply need to use the full address (called the absolute path) instead of the relative path:
<a href="http://my.yahoo.com">Go to My Yahoo!</a>
The code above will create a link that will take you to the "My Yahoo!" page located at http://my.yahoo.com. Use the back button on your browser to return here. Try it below!
Go to "My Yahoo!"
|