Understanding HTML rel attribute values is crucial for both search engine optimization and web security. This guide explains the key values: DoFollow, NoFollow, NoOpener, and NoReferrer.
DoFollow
By default, all links are DoFollow. This means search engines will follow the link and pass authority (link juice) to the target page. No attribute is needed for DoFollow behavior.
NoFollow
Adding rel="nofollow" tells search engines not to follow the link or pass authority. It's commonly used for sponsored content, user-generated links, or untrusted sources.
NoOpener
The rel="noopener" attribute prevents the new page from accessing the window.opener property, enhancing security by isolating the new tab. It's recommended for all external links opened in a new tab.
NoReferrer
rel="noreferrer" hides the referrer information from the target site, meaning the destination won't know where the traffic came from. This improves privacy.
Combining Attributes
You can combine these values, e.g., rel="nofollow noopener noreferrer". The order doesn't matter. Using these attributes appropriately helps optimize SEO while maintaining security.
Security Implications
NoOpener and NoReferrer protect against tabnabbing and referer leakage. Always use rel="noopener noreferrer" on external links opened in new tabs.
For more details, watch the full video on SlideScope.
This article is based on the video "DoFollow NoFollow NoOpener NoReferrer Rel Attribute Values Explained for SEO and Security" by SlideScope.