Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
482 views
in Technique[技术] by (71.8m points)

html - 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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...