Sub topic 1
What a Backlink Is and Why It Matters
A backlink is a link from another website to yours. This chapter defines the term precisely and explains the three ways backlinks help a site. It also shows how to see the backlinks you already have, and why a small site should start by asking people it already knows.
Prerequisites
This chapter assumes you have the following:
- A basic idea of how search engines crawl pages and rank results.
- Familiarity with HTML links, meaning the
aelement and itshrefattribute. - A live website with at least a few useful pages.
- The ability to write a short, professional email. You will need it in later chapters.
You do not need any SEO tools or paid accounts. Everything here works with free tools.
What a backlink is
A backlink is a hyperlink on someone else's page that points to a page on your site. The word describes direction. If a supplier's page links to your shop, that link is a backlink for you. For the supplier, it is an outbound link.
Other terms for the same thing:
- Inbound link: a link coming into your site from elsewhere.
- External link: a link that crosses from one domain to another. It is "external" from the point of view of the page that contains it.
- Referring domain: a website that links to you at least once. If one partner links to you from ten pages, that is ten backlinks but one referring domain.
The distinction between backlinks and referring domains matters in practice. Ten links from one site tell a search engine less than one link each from ten unrelated, independent sites.
The anatomy of a link
A link is a small piece of HTML. A search engine reads three parts of it.
<a href="https://www.example-shop.com/guides/sizing">Example Shop sizing guide</a>| Part | In the example | What it tells a search engine |
|---|---|---|
| Destination | `https://www.example-shop.com/guides/sizing` | Which page is being recommended |
| Anchor text | `Example Shop sizing guide` | A short description of the destination |
| Surrounding context | The text and page around the link | The topic of the linking page and why the link is there |
A fourth part, the rel attribute, can change how a link is treated. A later chapter covers it. For now, a link without a rel attribute is an ordinary link.
Backlinks, internal links, and outbound links
Which kind of link you are looking at depends on where you stand. The next table uses a link from partner.example to example-shop.com.
| Link | Who links to whom | Name from your point of view |
|---|---|---|
| partner.example to example-shop.com | Another site to you | Backlink |
| example-shop.com to partner.example | You to another site | Outbound link |
| example-shop.com/blog to example-shop.com/products | Your page to your page | Internal link |
Internal links help visitors and crawlers move around your site, but they are not backlinks. You control them completely, so a search engine treats them as weaker evidence than a link someone else chose to give you.
Seeing the idea in code
The following script reads a partner's page, collects every link, and keeps the ones that point to your domain. Those are your backlinks from that page. It uses only the Python standard library and an inline sample page, so you can run it as shown.
from html.parser import HTMLParser
from urllib.parse import urlparse
class LinkCollector(HTMLParser):
"""Collect the href value of every <a> element."""
def __init__(self):
super().__init__()
self.hrefs = []
def handle_starttag(self, tag, attrs):
if tag == "a":
href = dict(attrs).get("href")
if href:
self.hrefs.append(href)
def backlinks_to(html, domain):
"""Return links in html that point to domain or its subdomains."""
collector = LinkCollector()
collector.feed(html)
result = []
for href in collector.hrefs:
host = urlparse(href).netloc.lower()
if host == domain or host.endswith("." + domain):
result.append(href)
return result
partner_page = """
<html><body>
<h1>Our recommended suppliers</h1>
<a href="https://www.example-shop.com/guides/sizing">Sizing guide</a>
<a href="https://other-site.example/about">Another site</a>
<a href="/contact">Contact us</a>
</body></html>
"""
print(backlinks_to(partner_page, "example-shop.com"))The output is ['https://www.example-shop.com/guides/sizing']. The relative link /contact has no host, so it counts as internal to the partner's site. The link to other-site.example points to someone else. Only the first link is a backlink for example-shop.com.
Why backlinks matter
Backlinks help in three separate ways. Keep them apart in your head, because they respond to different efforts.
1. Discovery
Search engines find new pages mostly by following links. A crawler reads a page it already knows, notices the links on it, and queues the destinations. A new page with no links pointing to it may be found late, through a sitemap or not at all. A link from an established site gives the crawler a short path to you.
This matters most for a new site. If nobody links to you, the crawler has few reasons to visit.
2. Ranking signal
Search engines treat a link as a vote of confidence. When one site links to another, the author is saying the destination is worth a reader's time. Google's original ranking method, PageRank, was built on this idea. Link signals remain one of many inputs to ranking today, alongside content quality, page experience, and others.
The vote works because it costs the voter something. An author who links out risks sending readers to a poor page. A link given freely, in a relevant place, carries information that you cannot produce by editing your own pages.
3. Referral traffic
A backlink is also a door. People click links. A link in a supplier's "where to buy" page can send buyers who already trust the supplier. This traffic is useful regardless of what any search engine does with the link. It is also why a link is still worth earning if its ranking effect turns out to be small.
Why count is not the goal
It is tempting to treat the number of backlinks as the score. Search engines do not read links that way, and chasing the number leads to bad habits.
- One link from a respected, relevant site can matter more than dozens from unrelated or low-quality pages.
- Links that exist only to manipulate rankings can be ignored by search engines. In some cases they lead to a penalty for the site that benefits.
- A link a real person might click is a better sign of a good link than a link nobody would ever see.
The next chapters cover how to judge quality and which practices count as link schemes. For this chapter, remember one rule: a good backlink is a link that a real site owner placed for a real reason. Everything else in this tutorial follows from that.
Common misunderstandings
"More links always means better rankings." Relevance and trust carry more weight than volume. A hundred irrelevant links can be worth less than one relevant one.
"A link from any site is equally good." Links differ in value depending on the linking site's topic, reputation, and where on the page the link sits. A link in the main text of a relevant article differs from one in a footer shared by thousands of pages.
"If a page links to me, I will rank for the anchor text." Anchor text is a hint, not a command. A search engine looks at the whole page and the links around it.
"Once a link is placed, it stays." Pages are redesigned, deleted, and moved. A link that exists today can be gone in a year. A later chapter covers tracking and upkeep.
"I can only get links by being famous." Many first links come from people who already know you. This is the focus of the rest of the tutorial.
Checking what you already have
Before you ask anyone for a link, find out what you already have. You may have a few. Google Search Console, which is free once you verify that you own your site, has a Links report. It lists:
- the pages on your site that have the most external links,
- the sites that link to you most often,
- the anchor text people use most.
Treat this as a sample. Search Console may not show every link, and third-party tools each find a different subset of the web. When two tools disagree, that is normal. What you want is a rough picture: which sites link to you, which of your pages they choose, and what words they use.
Write down what you find. You will compare it against your list of relationships in the next chapters.
Why start with people you already know
A new site with no links faces a circular problem. Sites that are already well linked get found and linked to more often. A site with nothing starts at the back of the queue.
The easiest way to break in is to ask people who already have a reason to say good things about you:
- Partners you work with on projects or referrals.
- Suppliers and vendors you buy from.
- Communities and associations you belong to.
These people know that you exist and that your business is real. A link from them is natural, because it reflects a relationship that already exists. That is exactly the kind of link a search engine wants to count. It is also much easier to ask for than a link from a stranger.
The path through the rest of this tutorial is:
- Learn what makes a link valuable and which practices to avoid.
- Build something worth linking to.
- List your relationships and rank the opportunities.
- Make the request, then verify and maintain the links you earn.
Exercise
A partner publishes a page that links to your product page. The same partner also links to your home page from three other pages on their site. How many backlinks and how many referring domains does this give you? Also, is a link from your own blog to your product page a backlink?
Show answer
The partner gives you four backlinks (one to the product page and three to the home page) but only one referring domain, because all four links come from the same site. A link from your own blog to your product page is an internal link, not a backlink, because it does not come from another site.
Exercise
Name the three ways a backlink can help your site, and say which one would still be useful if search engines ignored the link completely.
Show answer
A backlink helps with discovery (crawlers find your pages by following it), as a ranking signal (it works as a vote of confidence), and through referral traffic (visitors click it). Referral traffic would still be useful if search engines ignored the link, because the visitors arrive regardless of how the link is treated.
Exercise
Run the script from this chapter against your own domain. Change the sample page so it contains one link to your domain, one link to another site, and one relative link. Which links does the script print, and why?
Show answer
It prints only the link whose host matches your domain or a subdomain of it. The link to another site is skipped because its host does not match. The relative link is skipped because it has no host, which means it points inside the partner's own site and is not a link to you.