Links in content should use meaningful text to describe their destinations, use stable URLs, and lead to pages with useful content. Site navigation should also provide links that search engines can recognize, rather than relying solely on JavaScript. Writing a URL in a paragraph is not the same as creating a clickable link. The sections below cover link text, navigation, and URL management. The Google recommendations cited mainly concern e-commerce websites, so product-page rules should not be applied directly to every situation.
Use link text that describes the destination, not just “click here”
Anchor text is the clickable text in a link. Google’s e-commerce documentation recommends using meaningful text whenever possible, such as the name of the product being linked to, rather than generic wording like “click here.” When linking to the product page for a particular green shirt, the product name describes the destination more clearly than “view” alone.
A 2019 Ahrefs article categorizes anchor text into types including exact match, phrase match, partial match, brand names, naked URLs, and generic text. These categories do not guarantee rankings or imply that every link should be packed with exact-match keywords. The sources used here do not specify an optimal mix of these types.
Navigation needs actual links, and URLs should remain stable
Google’s documentation recommends using HTML a elements with href attributes to create links between pages. Googlebot may not detect navigation that relies solely on JavaScript. That does not mean Googlebot cannot discover any URLs in JavaScript.
URLs used in internal links should avoid session IDs, the current time, or temporary values that vary by user. This helps avoid short-lived or duplicate URLs for the same content. For example:
- The documentation recommends URLs with fixed parameter values, such as /t-shirt?location=UK.
- It advises against using /t-shirt?location=nearby or /t-shirt?session=123123123.
This is not a requirement to remove all query parameters; the documentation also allows parameters such as color=green to identify product variants.
Use a consistent URL for each page, with separate rules for product variants
Google’s e-commerce documentation recommends using the same selected URL in internal links, Sitemaps, and canonical tags. For example, if the first page is also the default page, consistently include or omit ?page=1 rather than mixing the two forms.
The documentation also recommends that indexable pages use canonical tags pointing to their own URLs and be included in a Sitemap. Product variants are handled differently: when each variant has a dedicated URL, its canonical tag should specify the canonical product URL. If query parameters identify variants, the documentation recommends using the URL without those parameters as the canonical URL. The recommendation to use self-referencing canonicals therefore has exceptions.
Before linking, check that the destination page has useful content
Google recommends avoiding links to pages without useful content, or at least preventing those pages from being indexed. Category pages with no products can use noindex. The documentation further recommends returning a 404 only when the site has automatically removed the empty category from internal search and no longer makes it available for browsing. Each approach has its own conditions; an empty page does not automatically call for removing links or returning an error.
URL and link FAQs: perspectives from the web
Will search engines follow a URL that appears only as plain text?
This account alone cannot establish whether search engines currently follow plain-text URLs. A 2013 account stated that Googlebot at the time would pick up URLs in a page's plain text and JavaScript. However, the author was uncertain whether these URLs counted toward PageRank and offered only a personal view. This historical experience should not be treated as a current rule.
How complex should URLs be, and what should happen to old URLs?
One webmaster recommends using short, meaningful words in URLs and avoiding complex strings. If a URL is generated from a page title and changes along with that title, the webmaster suggests redirecting the old URL to the new one to handle existing links. This is an individual recommendation, not a requirement to change the URL whenever a title changes.
What counts as anchor text when an image itself is a link?
In its 2019 overview of anchor text types, Ahrefs stated that an image link's anchor text is the image's alternative text, or alt text, attributing this statement to Google. This helps distinguish image links from visible text links, but the historical article is not sufficient to establish current platform rules for handling all image links.
References
- 電子商務網址結構的最佳做法 | Google 搜尋中心 | Documentation | Google for Developersdevelopers.google.com — Source used in the article above.
- Does have a web address on your site affect SEO?webmasters.stackexchange.com — Discusses: Will search engines follow a URL that appears only as plain text?
- Anchor Text: A Data-Driven Guide (384,614 Web Pages Studied)ahrefs.com · 2019-02-26T20:07:54+00:00 — Discusses: What counts as anchor text when an image itself is a link?
- Which of these URL scenarios is best for big link menus? [seo /user friendly urls]webmasters.stackexchange.com — Discusses: How complex should URLs be, and what should happen to old URLs?

