Open In App

HTML <link> referrerpolicy Attribute

The HTML <link> referrerpolicy Attribute is used to specify the reference information that will be sent to the server when fetching out the resource.  

Syntax:



<link referrerpolicy="value">

Attribute Values:

Example: Below code illustrates the use of <link> referrer policy attribute, we have set the referrerpolicy attribute to no-referrer. 






<!DOCTYPE html>
<html>
 
<head>
    <link id="linkid"
        rel="stylesheet"
        type="text/css"
        href="styles.css"
        sizes="16*16"
        hreflang="en-us"
        referrerpolicy="no-referrer">
</head>
 
<body style="text-align:center;">
    <h1>GeeksForGeeks</h1>
 
    <h2>
        HTML Link referrerpolicy Attribute
    </h2>
</body>
 
</html>

Output:

Supported Browsers:

Article Tags :