HTML and CSS Reference
The first article of the document.
The second article of the document.
Copyright © 2015 John Smith. All rights reserved.
Hyperlinks are fundamental elements of web pages that can be added to the markup as follows:
Provide the basic anchor. It can be a URI of an external site such as the following:
<a href=" http://www.example.com ">
or a path within your site such as the following:
<a href=" gallery/ ">
Hyperlinks can also point to a document segment (identified by the id attribute) with
a fragment identifier . Here's an example:
<a href="gallery/canada.html #calgary ">
Set the target (if required). External links are often intended to be opened in a new
window. Here's an example:
<a href="http://www.example.com" target="_blank" >
Add a tabbing index to improve accessibility (optional).
<a href="http://www.example.com" tabindex="5" target="_blank">
Ensure that external links won't affect the PageRank of your site (optional).
<a href="http://www.example.com" rel="nofollow" tabindex="5" target="_blank">
Steps 2 and 4 apply for external links only.