![]() |
VOOZH | about |
The <a> tag defines a hyperlink that connects one page or resource to another. Its key attribute, href, specifies the destination URL where users are directed upon clicking.
<a href = "link"> Link Name </a> By default, links appear as follows in all browsers:
To open a link in a new browser Tab, add the target="_blank" attribute:
To link to another section on the same page:
To trigger JavaScript code:
Here are some of the attributes are discussed below:
Attributes | Description |
|---|---|
It specifies the character set. It is not supported by HTML 5. | |
It is used to specify the target link to download when the user clicks. | |
It is used to specify the language of the linked document. | |
It is used to specify the linked media. | |
It is used to specify the anchor name. It is not supported by HTML 5 you can use the global id attribute instead. | |
It is used to specify the relation between the current document and the linked document. | |
It is used to specify the shape of the link. It is not supported by HTML 5. | |
It is used to specify the type of links. | |
It specifies the target link. | |
Specifies the relationship between the linked document and the current document. Not supported in HTML5. |