COMPUTER LECTURES

HOME About us HTML ONLINE CODE EDITOR CONTACT US
HTML | ANCHOR
The anchor tag is used for Linking to section within the same document in the same website.
Note: This tag is also named as Internal link.

SYNTAX

OPENING TAG CLOSING TAG
<a href=""> </a>

Anchor Tag in HTML

<a href="pagename.html"> Click here to visit the pagename</a>

Example : anchor.html

<!DOCTYPE html>
<html>
<title>Computer lectures | Anchor</title>
<body>
<a href="pagename.html"> Click here to visit the pagename</a>
</body>
</html>

The output on the web broswer

Anchor