Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What rel=profile is for?

While doing the HTML for my new template, I stumbled across a new meta tag

<link rel="profile" href="http://gmpg.org/xfn/11" /> 

What's this for? I found it linking to this page, and through Google I found this Microformat but I didn't get it.

like image 932
Omar Abid Avatar asked May 19 '13 16:05

Omar Abid


2 Answers

In HTML 4.01, there is the profile attribute for the head element:

This attribute specifies the location of one or more meta data profiles, separated by white space. For future extensions, user agents should consider the value to be a list even though this specification only considers the first URI to be significant.

It is used to link to meta data profiles.

In HTML5, the profile attribute was dropped.

As an alternative to it, the rel value profile could be used (with several advantages over the profile attribute). RFC 6906 describes the "profile Link Relation Type".

An example format for such meta data profiles (whether for the profile attribute or the rel value) is XMDP: XHTML Meta Data Profiles. It is defined at http://gmpg.org/xmdp/:

a simple XHTML-based format for defining HTML meta data profiles easy to read and write by both humans and machines


In your example, the profile for XFN is used, the Xhtml Friends Network (archive.org link):

a simple way to represent human relationships using hyperlinks

like image 72
unor Avatar answered Sep 20 '22 12:09

unor


It's related to XHTML Friends Network (relation between links)

But don't waste your time on it.

It's useless enough to be dropped from the HTML5 draft. I'd suggest against using it.

Source: https://stackoverflow.com/a/1417789/4718434

like image 20
yaya Avatar answered Sep 20 '22 12:09

yaya