Sub topic 3
Reading and choosing link attributes
This chapter assumes you know how an a element and its href work, and that you have a basic picture of how search engines crawl pages and follow links. By the end, you should be able to read the rel attribute on any link and pick the right value for links you place or ask others to place.
What the rel attribute does
The rel attribute on a link describes the relationship between the page that carries the link and the page it points to. Search engines read it as a hint about how to treat the link. Google describes these values as hints, not strict commands, so it may still decide how to use a link on its own.
Most links you want to earn have no rel value at all. A plain link is read as an ordinary editorial endorsement: the site owner chose to point to you.
The three values you need
| Value | Use it when | What it tells search engines |
|---|---|---|
| (none) | The site owner links to you freely, as an editorial choice | A normal link that can pass signals |
| `sponsored` | The link was paid for, or placed in exchange for goods or services | The link is part of an advertisement or sponsorship |
| `ugc` | The link sits in user-generated content, such as forum posts or comments | A user placed the link, not the site owner |
| `nofollow` | You do not want to vouch for the link, and no other value fits | A general hint not to pass endorsement |
You can combine values with a space, for example rel="sponsored nofollow".
Seeing the values in HTML
<!-- Editorial link a partner places on their own page -->
<a href="https://www.example-shop.com/guides/sizing">Example Shop sizing guide</a>
<!-- Paid or sponsored placement -->
<a href="https://www.example-shop.com/" rel="sponsored">Example Shop</a>
<!-- Link inside user-submitted content such as a forum post -->
<a href="https://www.example-shop.com/" rel="ugc">Example Shop</a>The first link is the kind you hope a partner or supplier gives you. The second is correct if money or goods changed hands. The third is typical for community sites, where the platform adds the value automatically.
Choosing attributes in practice
When you place a link on your own site, you choose the value. Use sponsored for any paid placement and for links you give in return for free products. Use ugc for links inside comments or forum areas you host.
When someone else links to you, you usually do not choose. Your job is to read what they chose and treat it correctly.
- A link from a supplier's customer stories page with no
relvalue is a standard earned link. - A link from a forum profile with
ugcis still useful for visitors and discovery, but do not expect it to carry the same weight as an editorial link. - A link marked
sponsoredshould only appear if you paid or traded value. If a partner adds it to a link that was a free editorial choice, you can politely ask them to remove it.
Common mistakes
- Hiding paid links. Paying for a link and leaving
relempty can break search engine guidelines. The next chapter covers this in detail. - Asking for "dofollow". No such
relvalue exists. A link withoutnofollow,sponsored, orugcis simply a normal link. - Judging a link only by its attribute. A
nofollowlink on a busy, relevant page can still send real visitors and build awareness. - Misspelling values.
rel="sponser"does nothing. Check spelling when you edit HTML.
Exercise
A supplier agrees to link to your site from its "Where to buy" page in exchange for a free sample pack. Which rel value should that link carry, and why?
Show answer
It should carry rel="sponsored", because goods were exchanged for the link. A link given in return for free products counts as a compensated placement, so it should be marked as sponsored rather than left as a plain editorial link.
Exercise
You find this link on a partner's page: <a href="https://www.example-shop.com/" rel="ugc">. The partner wrote the page text themselves. Is the value appropriate?
Show answer
Not really. The ugc value is meant for links inside user-generated content such as comments or forum posts. A page the partner wrote themselves is editorial content, so the link should have no rel value. You could ask them to change it, but a ugc link still sends visitors.