HTML Link

A link is a clickable text or image or any other HTML element that has a reference to other HTML page. An HTML link is a hyperlink.

The <a> tag is used to define an HTML hyperlink.

A hyperlink allows to move from one HTML page to another HTML page.

Example
This is an example of text link.


How to use hyperlink in HTML code?



HTML Image Link

Example


How to use hyperlink Image in HTML code?



HTML Link target attribute

The <a> tag has target attribute. The target attribute of HTML link determines where to open the link. This target attribute may be used with one of the following values:

value Description
_self This value is used to open link in the same window or tab.
_blank This value is used to open link in a new window or a new browser's tab.
_top This value is used to open link in the full body of the window.
_parent This value is used to open link in the parent frame.
Example