HTML Hyperlink
HTML hyperlink is represented by <a>...</a>. It is called anchor tag.
It creates a way to connect with another pages.
Not only another pages it also links with different files, locations even an URL. For making these connections href is the most important attribute of anchor tag.
Here is an example to link with an URL:
The target Attribute
It is a very useful attribute of anchor tag. There are several values for this attribute.
- _self: By default anchor tag uses the self value. It means that the linking document opens in the same page when the link is clicked.
- _blank: It means that the linking document opens in a new page/tab when the link is clicked.
- _parent: It means that the linking document opens in the parent frame.
- _top: It means that the linking document opens in the top-most frame.