Open In App

HTML <a> referrerpolicy Attribute

The HTML <a> referrerpolicy attribute is used to specify the reference information that will be sent to the server when the user clicks on a hyperlink. 

Syntax:



<a referrerpolicy="no-referrer|no-referrer-when-downgrade|origin|
         origin-when-cross-origin|same-origin|
         strict-origin-when-cross-origin|unsafe-url"> 

Attribute values:

Example: 






<!DOCTYPE html>
<html>
 
<head>
    <title>HTML a referrerpolicy Attribute</title>
</head>
 
<body>
   <h2>
    GeeksForGeeks
   </h2>
  <h2>
      HTML Anchor referrerpolicy Attribute
  </h2>
     
 
<p>Welcome to
        <a rel="noopener"
           href="https://ide.geeksforgeeks.org/"
           referrerpolicy="no-referrer">
            GeeksforGeeks
        </a>
     </p>
 
 
 
</body>
 
</html>                   

Output:

Supported Browsers:

Article Tags :