People type SEO a tag into Google when they want one thing: a plain list of what the anchor element does for search, which attributes matter and which are folklore. This is that list, checked against Google Search Central, the WHATWG HTML standard, MDN and the W3C accessibility guidelines.
Google reads your page as HTML, not as a screenshot. The a element is how it walks from one URL to the next and how it decides what the destination is about. Get the anchor wrong and the page behind it is never crawled.
Google’s link best practices page states it without hedging: Google can only crawl your link if it is an a HTML element with an href attribute. Everything else is optimisation on top of that.
Google lists these as parseable: <a href=”https://example.com”>, the relative form <a href=”/products/category/shoes”>, an href carrying an extra onclick or class, and an anchor written properly into the DOM by JavaScript. These it files under not recommended, adding that it may still attempt to parse them:
Do not read “may still attempt” as permission. This is where single page applications lose their category pages: a click handler on a div works for a human with a mouse and is a coin toss for a crawler.
The text between the opening and closing a tags is the closest you get to writing the destination page’s summary yourself. Google’s guidance is specific:
The test Google suggests is worth stealing: read the anchor text on its own, sentence removed. If it still tells you where you are about to go, it works. “Our 2026 pricing” passes. “Here” does not.
Two edge cases. If the link text is empty, Google falls back to the title attribute. If the link wraps an image, the alt attribute becomes the anchor text.
nofollow was the only option for nearly fifteen years, from 2005 onward. On 10 September 2019 Google added two more, so owners could say why a link should not count, not just that it should not.
| Value | Use it for |
|---|---|
| rel=”sponsored” | Advertisements and paid placements. Google’s wording: mark links that are advertisements or paid placements, commonly called paid links, with the sponsored value. |
| rel=”ugc” | Links inside user generated content: comments, forum posts, profile fields. |
| rel=”nofollow” | Everything else you do not want to endorse, when neither of the other two fits. |
Three details people get wrong:
Google’s spam policies define link spam as creating links primarily to manipulate rankings, and name the violations: buying or selling links for ranking purposes, excessive reciprocal linking, automated link building programs, requiring an outbound link as a contractual obligation without letting the partner qualify it, text ads and text links that do not block ranking credit, keyword optimised links inside distributed widgets, and optimised links in forum signatures.
Commerce itself is fine: Google calls buying and selling links a normal part of the economy of the web for advertising and sponsorship. The line is the attribute. A paid link carrying rel=”sponsored” or rel=”nofollow” is compliant. The same link bare is not.
The target attribute controls where the destination opens. MDN lists the values: _self (the default), _blank, _parent, _top and _unfencedTop.
For years every checklist said to pair target=”_blank” with rel=”noopener” so the new tab could not reach back through window.opener. That is obsolete on current browsers. MDN records it plainly: setting target=”_blank” implicitly provides the same behaviour as setting rel=”noopener”. Safari shipped it first, Firefox in version 79 in 2020, Chromium in version 88 in early 2021, and it is now in the WHATWG HTML standard.
Adding it anyway costs nothing and still covers ancient browsers. What it does not do is affect ranking. Google’s list of link attribute values that carry meaning for Search contains exactly three: sponsored, ugc and nofollow.
The title attribute produces the tooltip on hover. Its only documented role in Google Search is narrow: it is the fallback source of link text when the anchor has no text at all.
That makes it a bad place for anything a user needs: tooltips do not appear on touch screens and screen reader support is inconsistent. If it matters, put it in visible anchor text. If the anchor has no text, an icon link for example, give it an accessible name through aria-label rather than title.
The HTML standard gives the a element eight content attributes of its own, on top of the global attributes every element gets. Two of the eight come up constantly in SEO conversations. The rest, plus the global title, mostly do not.
| Attribute | What it does | SEO relevance |
|---|---|---|
| href | The destination URL. Supports tel:, mailto: and other schemes. | Required. No href, no link. |
| rel | Space separated relationship values. | Three matter: sponsored, ugc, nofollow. |
| target | Where the destination opens. | None directly. A usability decision. |
| title (a global attribute, not specific to a) | Tooltip text. | Fallback link text only when the anchor is empty. |
| download | Treats the destination as a download. | None. Browser intent only. |
| hreflang | Hints at the language of the destination. | Not one of the three methods Google supports. Those are link elements in the head, HTTP headers and sitemap entries. |
| ping | URLs that receive a POST when the link is followed. | None. Tracking, widely blocked. |
| referrerpolicy | How much referrer data to send. | None. Changes the destination’s analytics. |
| type | Hints at the MIME type of the destination. | None. MDN notes it has no built in functionality. |
The HTML standard adds two structural limits that break real pages. An a element cannot contain interactive content, another a element, or any descendant with tabindex set. And an a element with no href is defined as a placeholder for where a link might otherwise have been, which is how the spec frames the current item in a navigation menu. The standard also requires target, download, ping, rel, hreflang, type and referrerpolicy to be omitted when there is no href.
Internal links do two jobs: they let crawlers reach pages, and their anchor text tells Google what those pages are about. Google’s advice: use internal links to cross reference related content, and link externally when establishing credibility through sources.
If you are not sure which of your pages are reachable at all, our guide on how to find all the pages on a website covers the crawl and index checks that surface orphans.
When an a element wraps an img instead of text, the image’s alt attribute becomes the anchor text. Google calls alt the most important attribute for giving metadata about an image.
Google’s own examples set the range. Missing alt is bad. So is the version it prints as a warning, a run of forty odd words starting “puppy dog baby dog pup pups puppies” and running through breed names and “cheap dogfood”. Acceptable is “puppy”. Best is “Dalmatian puppy playing fetch”. Google also asks for descriptive filenames: my-new-black-kitten.jpg, not IMG00023.JPG.
For a linked logo or product thumbnail, write the alt as the destination, not the picture. “Neurounit pricing” beats “screenshot”.
Chrome DevTools closes the loop. Select an element, open the Elements panel, confirm it is an a with an href and not a styled div.
Want this done rather than described?
We run technical SEO audits that start exactly here: crawlable links, anchor text, qualified outbound links, canonicals and orphan pages, with a fix list your developers can action.
No. Since 1 March 2020 all three attributes are hints for crawling and indexing. Google says marked links will generally not be followed, but the destination can still be found through a sitemap or a link from another site.
Only for legacy browsers. Implicit noopener shipped in Firefox 79 in 2020 and Chromium 88 in early 2021 and is now in the WHATWG HTML standard. It has never affected ranking.
Google states there is no limit on its length, only that the title link is truncated in results to fit the device width. Front load the specific part and check it on mobile.
The attribute exists in HTML, but Google supports exactly three hreflang methods: link elements inside a well formed head, HTTP headers, and xhtml:link entries in a sitemap.
For anchor text pointing at you from other sites, the Top linking text section of the Search Console Links report, remembering the 1,000 row table cap and 100,000 row export cap. That section covers external links only, so internal anchor text has to come from a crawler. On a small site the free 500 URL Screaming Frog edition does it.