33

I got this code from the wordpress

<head profile="http://gmpg.org/xfn/11">

What does this means?

what is the use of this code.? :-)

coderex
  • 27,225
  • 45
  • 116
  • 170
  • Possible duplicate of [Use of profile attribute in HTML head tag](http://stackoverflow.com/questions/1585220/use-of-profile-attribute-in-html-head-tag) – zanetu May 23 '16 at 02:07

6 Answers6

14

From http://www.w3.org/TR/html401/struct/global.html#h-7.4.4.3

Meta data profiles

The profile attribute of the HEAD specifies the location of a meta data profile. The value of the profile attribute is a URI. User agents may use this URI in two ways: As a globally unique name. User agents may be able to recognize the name (without actually retrieving the profile) and perform some activity based on known conventions for that profile. For instance, search engines could provide an interface for searching through catalogs of HTML documents, where these documents all use the same profile for representing catalog entries. As a link. User agents may dereference the URI and perform some activity based on the actual definitions within the profile (e.g., authorize the usage of the profile within the current HTML document). This specification does not define formats for profiles.

Paul Tomblin
  • 179,021
  • 58
  • 319
  • 408
  • 1
    can you explain why you would want to link this to "http://gmpg.org/xfn/11"? – Jens Timmerman Jun 12 '23 at 16:06
  • @JensTimmerman I guess because that’s the data profile they wanted to use. Looking at it, it appears to be a way to label links on your page with the relationship you have to the owner of that page. – Paul Tomblin Jun 13 '23 at 17:44
  • 1
    but why would you want to do that? Why do a lot of wordpress pages use that same data profile? It looks like a placeholder that is never replaced, or does it have some actuall value if everyone links to the xfn/11 data profile? – Jens Timmerman Jun 14 '23 at 10:23
13

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

Ms2ger
  • 15,596
  • 6
  • 36
  • 35
10

Its like a meta link for the XHTML Friends Network. XFN is a way of describing, in a machine-readbale way, relationships between you and other people.

Jonny Barnes
  • 515
  • 1
  • 12
  • 28
3

It is a meta data profile.

As specified by http://www.w3.org/TR/html4/types.html#type-links, profiles should be specified when using values for the rel attribute that are not defined in the HTML specification.

See http://www.w3.org/TR/html4/struct/global.html#h-7.4.4.3 and http://gmpg.org/xfn/11 for the details.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
0

Here it is explained quite well : https://en.wikipedia.org/wiki/XHTML_Friends_Network

Basically , an example would be if you wrote a blog post (thats why its on wordpresses site) You coudl put the rel ( relation ) the person you tagged in the blog has to you.

cant see the point personally but something to do with web crawling for importance of relationship. Maybe users can view the rel in their browser and see who the person linked in the blog is to the user... again though,who cares? i believe a good answer would answer this part of the question...

chheky
  • 19
  • 7
-1

Theoretically speaking, I believe this is a wonderful attribute to add to a link. By identifying this parameter in the link origin offers the possibility to add another metric in the attempts to verify the importance of a link by the search engines of today and the companies that utilize the data in the future. This attribute could help determine if a link to someone is not spam or spam-esque.

Unfortunately, there would be a "continual static" in the data from manipulation of the web masters to use the most impactful link relationship as results demonstrate instead of an actual.
I believe that no matter the hardship now to incorporate, this important attribute should be used and tracked regardless of the possible manipualtions.

Has anyone seen anything more on this attribute being utilized or incorporated? I'll keep reading. Thanks for the hard work.