Html
Hypertext Markup Language
Definition:
This element indicates the portion of the documnet that is a hyperlink or the named target destination for a hyperlink.
Attributes for the Anchor Tag:
- Href: It stands for hyperlink reference, href is used to add link to our Webpage.
- Target: Target is used in case of links, it helps if we want to open our link in a new tab or in the same tab in which we are working.
Example
<html>
<head>
<title>Skillpundit</title>
</head>
<body>
<a href="http://www.skillpundit.com" target="_blank">SkillPundit </a> </br> <a href="https://www.facebook.com/skillpunditofficial">FaceBook </a></br> <a href="https://www.instagram.com/skillpunditofficial" target="_self">Instagram </a> </body>
</html>
<title>Skillpundit</title>
</head>
<body>
<a href="http://www.skillpundit.com" target="_blank">SkillPundit </a> </br> <a href="https://www.facebook.com/skillpunditofficial">FaceBook </a></br> <a href="https://www.instagram.com/skillpunditofficial" target="_self">Instagram </a> </body>
</html>
Output