HTML links is used to navigate from current page to another pages. We can navigate pages by clicking on text, images.
HTML links is called as Hyperlinks. We can use Hyperlinks <a> tag for linking web page, image, document like pdf, docs etc.
Syntax :
<a href="" title="" target="">Click</a>
HTML Link <a> tag or HTML anchor tag attribute
-
href : It specifies destination the path of document like web page, pdf, docs etc. link.
-
title : It specifies title of destination link. It is recommened for good SEO purpose.
-
target : It specifies where to open the linked page or document. Target value are _blank, _parent. _self, _top. By default, the linked page will be displayed in the current browser window.
_self - Default. It Opens the document in the same window/tab as it was clicked.
_blank - It Opens the document in a new window or tab.
_parent - It Opens the document in the parent frame.
_top - It Opens the document in the full body of the window.
We can apply hyperlinks as below.
- Text : We can set text between the opening <a> tag and the closing </a> tag
- Images Tag : We can set image between the opening <a> tag and the closing </a> tag
- Email Tag : HTML <a> tag provides you option mailto: email address to specify an email address to send an email.
Also html link is called as HTML anchor tag.
Comments