How to Add HTML Anchor Tag
![anchor tag html anchor tag html](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOeY_dTGV9gFa8TTNzxWHAcH2j494ZjksZQp9qjHIiM3WqZevOoSIvaqY1k1keoYuGIqmlLxl_GLnOUye7mKB9UprEGuEdjDANLn8MN_mVeQWQZ1RhsWRqI-4M61dcsd_bE9tv7A5ghbfxKbaQRd686ScARuZ9jPvldU2Cv07_AZuTzoEuWeE8RXLkuMr9/w374-h400/anchar%20tag.png)
Anchor Tag
The <a> tag define hyperlink
1] Html anchor tag defines a hyperlink this used to link from one page to another.
2] Its create hyperlink to other web page as well as files, location
3] Most important attribute of the<a> element is the href attribute.
4] when link is clicked it redirects the user to that page.
5] The <a> tag creates a clickable link.
6] The href attribute sets the target page or site
example:- https://webdesigningtheory.blogspot.com/?m=1
7] The target attribute specifies in what tab ,window to open the new page.
8] Its href <a> attribute creates a hyperlink to web page, files email addresses ,locations in the same page else URL address.
9] hyperlink its important to the website ,web page ,or part of the same web page to link to.
10] In addition to the href attribute website linking to open in another browser tab. you just need to set the value of the target attribute to blank.
11] <a> hyperlink is the Global attribute / event attribute =supports
which indicates the links destination.
default link :
unvisited link -blue
visited link-purple
active link- red
Q. What is the Anchor Tag in html?
An anchor is a piece of text which marks the beginning
and/or the end of a hypertext link. The text between the opening tag and the closing
tag is either the start or destination specifies where to open the linked document.
Syntax
<a href="https://webdesigningtheory.blogspot.com
/?m=1">webdesigningtheory.blogspot</a>
Example
<!DOCTYPE html>
<html>
<head>
<title>Document</title>
</head>
<body>
<h2>visit the link</h2>
<ul>
<li><a
href="https://webdesigningtheory.blogspot.com
/?m=1">Website 1</a></li>
<li><a href=
"https://webdesigningtheory.blogspot.com/?m=1">
Website 2</a></li>
<li><a href=
"https://webdesigningtheory.blogspot.com/?m=1">
Website 3</a></li>
</ul>
</body>
</body>
</html>
Output :-
Visit the link