HTML Tutorial - Hyperlinks

Creating a Link
Creating a link to another webpage is easy.
Use the <a> and </a> tags.
The website to link to is added with the 'href' attribute.
eg: <a href="http://www.berm.co.nz">Link Name</a>
Link Name

Target
If you want to open the link in a new browser window, add the attribute target="_blank" to the 'a' tag.
target="_blank" (Opens new window.)
target="_top" (Makes sure the link is opened in the current window.)
eg: <a href="http://www.berm.co.nz" target="_blank">Link Name</a>
Link Name

Title
You can add a title to the link also.
title="Link Description"
eg: <a href="http://www.berm.co.nz" title="Link Description">Link Name</a>
Hover your mouse over the link below to see the title.
Link Name


HTML Tutorial     Home