Skip to content
PHP Ecosystem
Explore

Rel

enumUIAwesome\Html\Attribute\Values\Rel
Backed bystring
Sourcesrc/Values/Rel.php

Represents relationship tokens for the HTML rel attribute.

See also: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel, https://www.iana.org/assignments/link-relations/link-relations.xhtml.

CaseValueDescription
ALTERNATE'alternate'alternate — Indicates an alternate representation of the current document (for example: translated versions, alternate formats, or alternate stylesheets when used with the stylesheet keyword).
APPLE_TOUCH_ICON'apple-touch-icon'apple-touch-icon — Non-standard (Apple) — Icon used by iOS for Web Clips / home-screen icons.
APPLE_TOUCH_STARTUP_IMAGE'apple-touch-startup-image'apple-touch-startup-image — Non-standard (Apple) — Startup image for iOS Web Apps.
AUTHOR'author'author — Referenced resource provides information about the author of the current document or article.
BOOKMARK'bookmark'bookmark — A permalink for the nearest ancestor article or for the section the link is associated with.
CANONICAL'canonical'canonical — The preferred URL for the current document (used by search engines to reduce duplicate content).
COMPRESSION_DICTIONARY'compression-dictionary'compression-dictionary (Experimental) — Link to a compression dictionary that can be used to compress future downloads for resources on this site.
DNS_PREFETCH'dns-prefetch'dns-prefetch — Hint to the user agent to preemptively perform DNS resolution for the target resource’s origin to reduce latency.
EXPECT'expect'expect (Experimental) — When used with blocking="render", allows the page to be render-blocked until essential parts are parsed for consistent rendering.
EXTERNAL'external'external — Indicates the referenced document is not part of the same site as the current document (useful to style external links).
HELP'help'help — Link to context-sensitive help related to the element or document.
ICON'icon'icon — Linked resource represents an icon for the current document (commonly used for favicons).
LICENSE'license'license — Indicates the referenced document describes the licensing information that covers the main content of the current document.
MANIFEST'manifest'manifest — Points to a Web App Manifest describing the web application’s metadata.
ME'me'me — Indicates that the current document represents the person who owns the linked content (commonly used for identity links).
MODULEPRELOAD'modulepreload'modulepreload — Preloads a module and stores it in the document’s module map for later evaluation (improves module loading performance).
NEXT'next'next — Indicates the next resource in a series (useful for paginated content and as a resource hint when used on <link>).
NOFOLLOW'nofollow'nofollow — Instructs search engines not to follow or endorse the link.
NOOPENER'noopener'noopener — Ensures a new browsing context does not have access to the window.opener of the originating page (security measure when using target="_blank").
NOREFERRER'noreferrer'noreferrer — Prevents sending the Referer header and implies noopener.
OPENER'opener'opener — The opposite of noopener: allows the opened context to have a reference to the opener.
PINGBACK'pingback'pingback — Address of the pingback server for the current document.
PRECONNECT'preconnect'preconnect — Hint to open a connection to the target origin in advance to reduce latency.
PREFETCH'prefetch'prefetch — Suggests the user agent preemptively fetch and cache the target resource for a likely future navigation.
PRELOAD'preload'preload — Instructs the user agent to preemptively fetch a resource for the current navigation according to the as attribute.
PRERENDER'prerender'prerender (Deprecated / Non-standard) — Previously used to prefetch and process a resource for faster future navigation.
PREV'prev'prev — Indicates the previous resource in a series (useful for paginated content).
PRIVACY_POLICY'privacy-policy'privacy-policy — Points to the document describing the privacy practices that apply to the current document.
SEARCH'search'search — Links to a resource that provides search capabilities for the current site or document (for example OpenSearch descriptions).
SHORTCUT'shortcut'shortcut — Obsolete / non-conforming synonym historically seen before icon.
STYLESHEET'stylesheet'stylesheet — Imports an external stylesheet.
TAG'tag'tag — Gives a tag (identified by the address) that applies to the current document.
TERMS_OF_SERVICE'terms-of-service'terms-of-service — Links to the Terms of Service for the content or site.