What is XFN? Link Relationship (XFN)
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?
2,521 views, 2 RAMs, and 2 comments
What are Link Relationship (XFN)?
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.
XFN Link Relationship Example
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.
Can I use multiple options on the same link?
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.
- Capitalising on the new Google layout
- How to block certain websites on your computer
- [Noobie Content] Affiliate Marketing Inspiration - How much can you make from affiliate marketing?
- AdBlock 101: How to detect and beat AdBlock - Stop losing money to content thieves and internet socialists
- What is XFN? Link Relationship (XFN)
- The Ultimate WordPress Performance Resource
- GeneratePress: Total overview of what it can offer and why it's the only theme I use.
- Woocommerce and Varnish Cache Pissing You Off?
- GeneratePress Review: Free vs Premium
- Best PHP Frameworks
Some other content you may like:
> Crush - someone you want to F
You mean someone who died recently
Sir, I can do you a nice SEO.
I'd like to
<a href="https://domain.com" rel="sweetheart">Boink</a>
, if you know what I mean ;)
Post a New Comment
Do you like having a good time?
Register an Account
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.
Argue with People on the Internet
Use your account to explain why people are wrong on the Internet forum.
Vandalize the Wiki
Or don't. I'm not your dad.
Ask and/or Answer Questions
If someone asks a terrible question, post a LMGTFY link.
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.