什么rel =配置文件是为了? [英] What rel=profile is for?
问题描述
在为我的新模板做HTML时,我偶然发现了一个新的元标记
< link rel =profile href =http://gmpg.org/xfn/11/>
在HTML 4.01中,有 <$ c
该属性指定一个或多个元数据配置文件的位置,以空格分隔。对于未来的扩展,用户代理应该将该值视为一个列表,即使该规范仅考虑第一个URI是重要的。
它用于链接到元数据配置文件。
在HTML5中,个人资料
属性为删除。
除此之外, <$可以使用c $ c> rel 值 profile
(使用> profile
属性的几个优点)。 RFC 6906 描述了个人资料
链接关系类型。
此类元数据配置文件的示例格式(无论是配置文件
属性还是 rel
值)是 XMDP :XHTML元数据配置文件。它在 http://gmpg.org/xmdp/ 中定义:
一种简单的基于XHTML的格式,用于定义HTML元数据配置文件,便于人和机器读取和写入
在您的示例中,使用了XFN的配置文件 Xhtml好友网络(archive.org链接):
使用超链接代表人际关系的简单方法
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.
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
这篇关于什么rel =配置文件是为了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!