A hyperlink is a clickable reference in a web page that takes the reader to another address, such as a different page, a file, an email address, a phone number or a spot further down the same page. In HTML it is written with the a element and its href attribute. Links are how people move around the web, and how search engines and AI crawlers find pages in the first place.
What is a hyperlink? #
MDN’s reference for the a element says the element, with its href attribute, creates a hyperlink to web pages, files, email addresses, places in the same page or anything else a URL can address. The words you click are the anchor text. The address behind them is the href. In code it looks like this:
<a href="https://example.com/guides/">our beginner guides</a>
“Link” and “hyperlink” mean the same thing in everyday use. In HTML the word link is also the name of a separate head element, used for stylesheets and canonical hints, which is not clickable.
What kinds of hyperlink are there? #
| Type | href example | What it does |
|---|---|---|
| Internal link | /wiki/link-juice/ | Goes to another page on the same site |
| External link | https://developer.mozilla.org/ | Goes to another website |
| Fragment link | #prices | Jumps to a section of the current page |
| Email link | mailto:hello@example.com | Opens the reader’s email program |
| Phone link | tel:+441134960000 | Starts a call on a phone |
| Download link | /files/menu.pdf with the download attribute | Asks the browser to save the file |
Seen from your own site, links pointing out are external links, links between your pages are internal links, and links from other sites pointing at you are backlinks. A link to a deep page rather than the homepage is a deep link.
Why does it matter for search? #
Links do 3 jobs for a search engine. They help it discover pages: Google says most new pages are found by following a link from a page it already knows. They tell it what the target is about, through the anchor text. And they pass value: Google’s link analysis systems, including PageRank, use how pages link to each other to judge what a page covers and how helpful it may be. That flow of value is often called link equity or link juice.
Google’s link best practices are specific. It can only reliably pull a URL from an a element that has an href. A span with an href, an a element with only an onclick, or a javascript: address may not be followed. Links added by JavaScript are fine if they end up in that same form. Relative addresses such as /products are fine too. Every page you want found should have at least one link from another page on your site.
Why does it matter for AI answers? #
AI crawlers follow links in the same way. If a page has no links pointing to it, a bot such as GPTBot or OAI-SearchBot may never reach it, and no assistant can quote it. Links out to trusted sources also help. When an assistant reads a claim with a link to the original, it can check it and give a citation. Clear anchors make it plain which page holds which fact, which feeds answer engine optimisation.
What makes good anchor text? #
Google advises anchor text that is specific and concise, and warns against generic words like “click here” or “read more”. It suggests a simple test: read only the linked words, out of context, and see whether they still make sense. For image links, Google uses the image’s alt text as the anchor. MDN gives the same advice for accessibility: screen reader users often hear a list of the links on a page, so “here” tells them nothing. Do not cram keywords into anchors. Google lists that under its spam policies, and it reads as keyword stuffing.
What do nofollow, sponsored and ugc mean? #
A rel attribute describes the link. Google’s page on qualifying outbound links sets out 3 values:
- sponsored for adverts and paid placements;
- ugc for links that visitors add themselves, say in a forum thread;
- nofollow when the other 2 do not fit and you would rather not be tied to the target.
You can combine them, as in rel="ugc nofollow". Google’s link guide adds that nofollow should not go on every outside link. Citing good sources plainly can build trust. Read more on sponsored and UGC links and dofollow links.
Should links open in a new tab? #
Usually not for links within your site. For outside links it is a choice. MDN notes that target="_blank" in modern browsers acts as if rel="noopener" were set, which stops the new page reaching back to yours. MDN also suggests saying in the link text when a link opens a new tab or downloads a file.
Common mistakes #
- Broken links. A link to a page that no longer exists wastes the reader’s time and the crawler’s visit. See broken link and link rot.
- Links through redirects. Point straight at the final address.
- Buttons faked as links. MDN says a link should only be used to go to a real URL; actions belong on a button.
- Menus built only in script. If the menu is not made of a elements with href, bots may not follow it.
- Orphan pages. A page nothing links to is hard to find. See orphan page.
A worked example #
A garden centre has a care guide for roses and a product page for rose food. The guide says “feed in spring, see our range”, and only “see our range” is linked. That is a weak call to action. Better: link the words “rose food for spring feeding” to the product page. Now readers know where they are going, Google learns what the target page is about, and the product page gains an internal link from a related guide. Add a link out to the RHS page on pruning, and readers can check the advice at its source.
How to check it #
- Run our broken link checker to find links that return errors.
- Use the redirect checker on any link you suspect goes through hops.
- Check the rel values on a page with the link rel checker, and review anchors with the internal anchor text checker.
- Our internal linking tool is coming soon.
Questions #
Is a hyperlink the same as a URL? #
No. The URL is the address. The hyperlink is the clickable element that points to it.
Do outside links hurt my site? #
No. Linking to good sources is normal and helps readers. Mark paid links as sponsored.
How many links should a page have? #
Google says there is no magic number. Link where it helps the reader.
Related words #
Sources #
- MDN Web Docs: The a element, checked 24 November 2026
- Google Search Central: Link best practices for Google, checked 24 November 2026
- Google Search Central: Qualify your outbound links to Google, checked 24 November 2026
- Google Search Central: In-depth guide to how Google Search works, checked 24 November 2026
- Google Search Central: A guide to Google Search ranking systems, checked 24 November 2026
Updated 24 November 2026 by URSY.
Cite this page: Hyperlink. URSY. Updated 24 November 2026. https://ursy.com/wiki/hyperlink/ · Section links
Tools for this
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →