HTML Anchor

Definition and Usage

The <a> tag defines a hyperlink, which is used to link from one page to another.


The most important attribute of the <a> element is the href attribute, which indicates the link's destination.


The HTML anchor tag defines a hyperlink that links one page to another page. It can create hyperlink to other web page as well as files, location, or any URL. The "href" attribute is the most important attribute of the HTML a tag. and which links to destination page or URL(Uniform Resource Locator).


href attribute of HTML anchor tag


The href attribute is used to define the address of the file to be linked. In other words, it points out the destination page.


The syntax of HTML anchor tag is given below.

<a href = "..........."> Link Text </a?

<a href="second.html">Click for Second Page</a>  

<html>  

<head>  

    <title></title>  

</head>  

<body>  

<p>Click on <a href="https://bcaschool.blogspot.com/" target="_blank"> this-link </a>to go on home page of BCASchol.</p>  

</body>  

</html>  

Post a Comment

Thanks for comment.

Previous Post Next Post