什么rel =配置文件是为了? [英] What rel=profile is for?

查看:125
本文介绍了什么rel =配置文件是为了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在为我的新模板做HTML时,我偶然发现了一个新的元标记

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

这是干什么用的?我发现它链接到这个页面,并且通过Google,我发现这个

在HTML 4.01中,有 <$ c 头元素的$ c> profile 属性


该属性指定一个或多个元数据配置文件的位置,以空格分隔。对于未来的扩展,用户代理应该将该值视为一个列表,即使该规范仅考虑第一个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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆