HTML Anchor

Table of Contents

HTML Anchor

What is Anchor tag in HTML?

It┬ádefines┬áthat a hyperlink created through an anchor tag can be used to move from one page to another. Also, it can create a hyperlink to other web pages as well as files, locations, or any URL. The “href” attribute is the attribute of the HTML anchor tag and which links to the destination page or URL.

Syntax

<a href = "URL or the file link"> Link Text </a>

Example

<!DOCTYPE html>  
<html>  
<head>  
    <title>Your Title</title>  
</head>  
<body>  
  <p>
  Click <a href="https://www.geekymynd.com/" target="_blank"> this-link </a>
  <p>  
</body>  
</html> 
Tags:
Previous DOCTYPE tag
Next HTML abbr Tag

Leave a Reply