256 Kilobytes

What is XFN? Link Relationship (XFN)

Articles in Content-Management Systems | By Hash Brown

Published | Last Update

Semantic HTML should be the goal of everyone. Now it's extended into people you know, has HTML semantics gone too far?

3,715 views, 2 RAMs, and 2 comments

XFN is an acronym that stands for XHTML Friends Network.

This is used by websites that want to link to other websites in order to help boost their search engine traffic through SEO.

A XFN link looks like this:

<a href="https://yourfriend.com" rel="friend">My friend!</a>

XFN is primarily used by bloggers to demonstrate that they are friends (or acquaintances) of the person who owns the website they are linking to. This is done with the rel="friend" attribute within the link.

You can even go further than this and markup the attribute to be more detailed, such as this:

<a href="https://yourcrush.com" rel="crush">My crush!</a>

In fact GMPG, the people behind this have come up with a whole fucking list of values you can use that describe pretty much all of the relationships you may have with someone.

Some of these options include:

Friendship Attribute Values

  • Acquaintance - someone you have spoken to, but not very much.
  • Contact - someone you hold contact information for.
  • Friend -  pretty self explanatory


  • Co-worker - someone who works at the same place as you
  • Colleague - someone you work with


  • Co-resident - someone you live with
  • Neighbor - someone you live near


  • Child - a fork of your DNA
  • Kin - extended family
  • Parent - person who forked their DNA for you
  • Sibling - version control of parental forked DNA
  • Spouse - person you fuck but more than a friends with benefits


  • Muse - someone who brings inspiration
  • Crush - someone you want to F
  • Date - Someone you're dating
  • Sweetheart - Someone you're intimate with

You can also add "met" so show you have actually met this person, like so:

<a href="https://domain.com" rel="parent met">Mother</a>

Why would I use this?

  • XFN is designed so that search engines and other such services will understand the relationship you have with these friends. They sometimes may chose to display this, which is super cool.
  • XFN link relationships are also more semantic, it displays more meaning.

A lot of people new SEO are afraid to link to their friends or even other websites that they own, this is a natural, "whitehat" way to do it that will eliminated any risk you may fear.

Is this some troll you made up?

No, this is real. It's been added to WordPress for a long time. You can see it in the links manager.

WordPress XFN Link Relationship

Yes, if this person is a co-worker you are dating that you are also living near you may use:

<a href="https://itscomplicated.com" rel="co-worker date neighbor">Mistake</a>

Is this the best way to tell someone I have a crush on them?

If you want to show them you have feelings, and you care about semantic HTML. Absolutely.

Users Who Have Downloaded More RAM:
August R. Garcia (3 years ago)
Huevos Rancheros (3 years ago)
🐏 ⨉ 2
Posted by Hash Brown 3 years ago

Edit History

• [2019-03-15 21:27 PDT] Hash Brown (3 years ago)
🕓 Posted at 15 March, 2019 21:27 PM PDT

Profile Photo - August R. GarciaAugust R. GarciaLARPing as a Sysadmi...Portland, ORSite Owner

> Crush - someone you want to F

You mean someone who died recently

Users Who Have Downloaded More RAM:
Hash Brown (3 years ago)
🐏 ⨉ 1
Posted by August R. Garcia 3 years ago 🕓 Posted at 16 March, 2019 05:24 AM PDT

Sir, I can do you a nice SEO.

Profile Photo - Huevos RancherosHuevos RancherosStaff

I'd like to

<a href="https://domain.com" rel="sweetheart">Boink</a>

, if you know what I mean ;)

Download more RAM. 🐏 ⨉ 0Posted by Huevos Rancheros 3 years ago 🕓 Posted at 16 March, 2019 06:38 AM PDT

Post a New Comment

Do you like having a good time?

Register an Account

You can also login to an existing account or reset your password. All use of this site is subject to the terms of service and privacy policy.

Read Quality Articles

Read some quality articles. If you can manage to not get banned for like five minutes, you can even post your own articles.

View Articles →

Argue with People on the Internet

Use your account to explain why people are wrong on the Internet forum.

View Forum →

Vandalize the Wiki

Or don't. I'm not your dad.

View Wiki →

Ask and/or Answer Questions

If someone asks a terrible question, post a LMGTFY link.

View Answers →

Make Some Money

Hire freelancers and/or advertise your goods and/or services. Hire people directly. We're not a middleman or your dad. Manage your own business transactions.

Register an Account