To make a hyperlink in an HTML page, use the <a> and </a> tags, which are the tags used to define the links. The <a>tag indicates where the hyperlink starts and the </a> tag indicates where it ends. Whatever text gets added inside these tags, will work as a hyperlink :
HTML Links - Hyperlinks
HTML links are hyperlinks.
You can click on a link and jump to another document.
When you move the mouse over a link, the mouse arrow will turn into a little hand.
HTML Links - The target Attribute
By default, the linked page will be displayed in the current browser window. To change this, you
must specify another target for the link.
The target attribute specifies where to open the linked document.
target attribute can have one of the following values:
_self- Default. Opens the document in the same window/tab as it was clicked
_blank- Opens the document in a new window or tab
_parent- Opens the document in the parent frame
_top- Opens the document in the full body of the window
Visit google on _blank targeted...
Visit google on _parent targeted...
Visit google on _top targeted...
Absolute URLs vs. Relative URLs
Both examples above are using an absolute URL (a full web address) in the href attribute.
A local link (a link to a page within the same website) is specified with a relative URL:
Image as a Link
To use an image as a link, just put the
<img> tag inside the
Link to an Email Address
mailto: inside the
href attribute to create a link that opens the
user's email program (to let them send a new email):