Link in HTML | How to create link in HTML


 Link in HTML

Html link is use to create a link. When we click on the link it will redirect us to the address which is given to it. <a> tag is start tag and </a> tag is the end tag. 

Attributes

Attributes is the property of the element. 
Attribute mean that we access and modify the property of that elements. 
href="" is an attribute of <a> tag. This the main tag of <a> tag. Href meab hyper Reference which is basically use for the link where you wanted to go. 

Example


<html lang="en">
<head>
   <title>Introduction to HTML</title>
</head>
<body>
    <a href="www.facebook.com">facebook</a>

</body>
</html>

Result


Description 

So in the above result when we click on the link it will redirect us to the official site of Facebook. It is becouse we use href whuch represent link address. 

No comments:

Post a Comment