← BYTES
HTML·Intermediate·Ref: 2.2.7
What is the difference between the `rel="nofollow"` and `rel="noopener"` attribute values on an `<a>` tag?
Have a question about this video? Mention reference 2.2.7 when you contact us.
a.`nofollow` tells search engines not to pass ranking credit/trust through that link (often used for untrusted user-submitted content); `noopener` is a security measure preventing a page opened via target="_blank" from gaining a JavaScript reference back to the originating page's window object
b.They are interchangeable synonyms for the same behavior
c.`noopener` affects SEO ranking, while `nofollow` affects security
d.Both attributes only have an effect when the link also includes target="_blank"
These solve two unrelated problems: nofollow is purely an SEO/trust signal read by search engine crawlers, while noopener closes a real security gap -- without it, a page opened in a new tab via target="_blank" can use window.opener to manipulate the original tab (e.g., redirecting it to a phishing page), a technique known as 'tabnabbing.'
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES227#HTML