Metadata Names
HTML meta name="referrer"
Sets a document referrer policy through metadata. The example preserves full URLs for same-origin requests and sends only the origin across origins when appropriate; use an HTTP header for earlier and consistent policy delivery. Place this metadata in the document head. Its consumer depends on the name: some values are browser settings, others are crawler or application metadata.
Formal Syntax & Structure
html syntaxhtml
<meta name="referrer" content="strict-origin-when-cross-origin">Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| name | keyword | Use referrer. |
| content | name-specific text or tokens | Example value: strict-origin-when-cross-origin. Interpret according to the metadata name. |
Working Example
Example Snippethtml
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <title>Example</title> <meta name="referrer" content="strict-origin-when-cross-origin"> </head> <body> <p>Example document</p> </body></html>