HTML Attributes
HTML referrerpolicy attribute
Controls the referrer information sent with an eligible fetch or navigation. no-referrer omits it; strict-origin-when-cross-origin is a common default policy. It does not prevent all tracking. Applicable elements include: <a>, <area>, <iframe>, <img>, <link>, <script>. Check each element’s value rules. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.
Formal Syntax & Structure
html syntaxhtml
referrerpolicy="no-referrer"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| referrerpolicy | referrer policy keyword | Controls the referrer information sent with an eligible fetch or navigation. no-referrer omits it; strict-origin-when-cross-origin is a common default policy. It does not prevent all tracking. |
Working Example
Example Snippethtml
<a href="https://example.com" referrerpolicy="no-referrer">Visit site</a>Browser Compatibility
Minimum supported versions across modern rendering engines
Chrome
70
Yes
Firefox
65
Yes
Safari
14
Yes
Checked desktop BCD snapshot: referrerpolicy on script only. Versions denote the recorded start of support (≤ means at least that early), not a guarantee of all behavior. Unresolved mirror and preview rows omitted.
HTML Living Standard