Open In App

HTML <img> referrerpolicy Attribute

The HTML <img> referrerpolicy attribute is used to specify the reference information that will be sent to the server when fetching the image. 

Syntax:



<img referrerpolicy="value">  

Attribute Values : 

Example: Below code illustrates the use of <img> referrer policy attribute. 






<!DOCTYPE html>
<html>
 
<body>
    <h1>GeeksforGeeks</h1>
 
    <h2>
        HTML img referrerpolicy Attribute
    </h2>
    <img src=
        alt="GeeksforGeeks logo" referrerpolicy="no-referrer"
     >
</body>
 
</html>

Output:

Supported Browsers:

Article Tags :