The anchor tag(<a>) in HTML is utilized to make a hyperlink on the webpage. This hyperlink is utilized to connect the one webpage to another web pages. It’s either utilized to give an absolute address or a relative reference as its “href” attribute.
Syntax:
<a href = "link"> Link Name </a>Attributes of Anchor (<a>) Tag:
Anchor tags have several attributes which are listed beneath.
Attribute | Description |
---|---|
charset Attribute | This attribute is utilized to defines the character-set. It isn't supported by HTML 5. |
download Attribute | It is utilized to charecterize the target link to download when the client clicks. |
hreflang Attribute | It is utilized to charecterize the language of the connected file. |
media Attribute | It is utilized to charecterize the connected media. |
coords Attribute | It is used to charecterize the coordinate of links. It isn't supported by HTML 5. |
name Attribute: | It is utilized to define the anchor name. It isn't supported by HTML 5 you can utilize the global id attribute instead. |
rel Attribute | It is utilized to define the connection between the exact document and the connected document. |
shape Attribute | It is utilized to specify the shape of the link. It is not supported by HTML 5. |
type Attribute | It is utilized to define the type of links. |
target Attribute | It charecterize the target link. |
rev Attribute | It is utilized to define the connection between the connected document and the exact document. It is not supported by HTML 5. |
Example:-
<!DOCTYPE html>
<html>
<head>
<title>Anchor Tag</title>
</head>
<body>
<h1>Example of Anchor Tag</h1>
<h5>click here <a href="sinhacoch.blogspot.com" target="_blank">SinhaCoch</a></h5>
</body>
</html>
0 Comments
🙏🙏please don't enter any spam links on the comment box.....