HTML <iframe> referrerpolicy Attribute Last Updated : 05 May, 2025 Comments Improve Suggest changes Like Article Like Report The HTML <iframe> referrerpolicy attribute is used to specify the reference information that will be sent when fetching the result. Syntax<iframe referrerpolicy="value">Attribute Values:no-referrer: It specifies that no reference information will be sent along with a request.no-referrer-when-downgrade: It has a default value. It specifies that refer header will not be sent to origins without HTTPS.origin: It specifies to only send the origin of the document as the referrer in all cases.origin-when-cross-origin: It sends the origin, path, and query string when performing a same-origin request, but only send the origin of the document for other cases.same-origin: It specifies that the referrer will be sent for same-site origins, but cross-origin requests will send no referrer information.strict-origin: It only sends the origin of the document as the referrer when the protocol security level stays the same (HTTPS/HTTPS), but don't send it to a less secure destination (HTTPS/HTTP).strict-origin-when-cross-origin: It sends the origin, path, and querystring when performing a same-origin request, only send the origin when the protocol security level stays the same while performing a cross-origin request (HTTPS/HTTPS), and send no header to any less-secure destinations (HTTPS/HTTP).Example: HTML <!DOCTYPE html> <html> <head> <title> HTML iframe referrerpolicy Attribute </title> </head> <body style="text-align:center;"> <h1>GeeksforGeeks</h1> <h2> HTML iframe referrerpolicy Attribute </h2> <iframe src="https://www.geeksforgeeks.org/community/" height="200" width="400" referrerpolicy="no-referrer"> </iframe> </body> </html> Supported Browsers:Google Chrome 51.0 and aboveInternet Explorer Not SupportedFirefox 50.0 and aboveSafari 13.0 and aboveOpera 38.0 and aboveEdge 79 and above Comment More infoAdvertise with us Next Article HTML | <iframe> sandbox Attribute M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-Attributes Similar Reads HTML <iframe> align Attribute The HTML <iframe> align attribute is used to specify the alignment of the inline-frame according to the alternate element. Syntax<iframe align="left|right|middle|top|bottom">Attribute Valuesleft: It sets the alignment of an iframe to left.right: It sets the alignment of an iframe to righ 1 min read HTML | <Iframe> frameborder Attribute The HTML Iframe frameborder Attribute is used to specify whether or not to display the border around the content of an <Iframe> Element. Syntax: <iframe frameborder="1 | 0"> Attribute Values: 0: It has a Default value. It sets the border on one state. 1: It sets the border on-off state. 1 min read HTML | <iframe> height Attribute The HTML <iframe> height attribute is used to specify the height of the <iframe> in terms of pixels. Syntax: <iframe height="pixels"> Attribute Values: It contains single value pixel which specifies the height of the iframes in terms of pixels. Below example illustrates the use of 1 min read HTML <iframe> longdesc Attribute The HTML <iframe> element's longdesc attribute provides a URL that links to a detailed description of the iframe's content, mainly for accessibility purposes. However, this attribute is deprecated in HTML5, with ARIA attributes and other techniques recommended for describing content.Syntax< 2 min read HTML <iframe> marginheight Attribute The HTML <iframe> marginheight attribute specifies the vertical margin space, in pixels, between the iframe's content and its top and bottom borders. Syntax<iframe marginheight="pixels">Attribute Valuespixels: It contains the value i.e. pixel which specifies the top and bottom margin of 2 min read HTML <iframe> marginwidth Attribute The HTML <iframe> marginwidth attribute defines the horizontal margin space, in pixels, between the iframe's content and its left and right borders. Syntax<iframe marginwidth="pixels">Attribute Values:pixels: It contains the value i.e. pixel which specifies the right and left margin of t 2 min read HTML | <iframe> name Attribute The HTML iframe name Attribute is used to specify a reference for an <Iframe> Element. The name attribute is also used as a reference to the elements in a Javascript. Syntax: <iframe name="name">Attribute Values: name: It specify the name for the Iframe element.UsageThe name attribute as 1 min read HTML <iframe> referrerpolicy Attribute The HTML <iframe> referrerpolicy attribute is used to specify the reference information that will be sent when fetching the result. Syntax<iframe referrerpolicy="value">Attribute Values:no-referrer: It specifies that no reference information will be sent along with a request.no-referrer- 2 min read HTML | <iframe> sandbox Attribute The HTML <iframe> tag's sandbox attribute restricts the behavior of the embedded content for added security. It allows or disallows specific capabilities such as form submission and scripting within the iframe.When the sandbox attribute exists, it will: treat the content as being from a singul 2 min read HTML <iframe> scrolling Attribute The HTML <iframe> scrolling Attribute is used to specify whether the scrollbar will be displayed or not in the <Iframe> Element. Basically, the scrollbar is used when the content is larger than the Iframe Element. Note: This attribute has been DEPRECATED and is no longer recommended.Synt 1 min read Like