php <head profile="http://gmpg.org/xfn/11">这是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1417689/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 02:29:23  来源:igfitidea点击:

<head profile="http://gmpg.org/xfn/11"> what is this?

phphtmlwordpress

提问by coderex

I got this code from the wordpress

我从 wordpress 得到了这个代码

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

What does this means?

这是什么意思?

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

这段代码有什么用。?:-)

采纳答案by Paul Tomblin

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

来自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.

元数据配置文件

HEAD 的配置文件属性指定元数据配置文件的位置。profile 属性的值是一个 URI。用户代理可以通过两种方式使用此 URI: 作为全局唯一名称。用户代理可能能够识别名称(无需实际检索配置文件)并根据该配置文件的已知约定执行某些活动。例如,搜索引擎可以提供用于搜索 HTML 文档目录的界面,其中这些文档都使用相同的配置文件来表示目录条目。作为链接。用户代理可以取消引用 URI 并根据配置文件中的实际定义执行一些活动(例如,授权在当前 HTML 文档中使用配置文件)。本规范没有定义配置文件的格式。

回答by Jonny Barnes

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.

它就像 XHTML Friends Network 的元链接。XFN 是一种以机器可读的方式描述您与其他人之间关系的方式。

回答by Ms2ger

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

从 HTML5 草案中删除它是无用的。我建议不要使用它。

回答by Quentin

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.

正如http://www.w3.org/TR/html4/types.html#type-links所指定的,在使用 HTML 规范中未定义的 rel 属性值时,应指定配置文件。

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

有关详细信息,请参阅http://www.w3.org/TR/html4/struct/global.html#h-7.4.4.3http://gmpg.org/xfn/11

回答by Mark Stegman

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.

有没有人看到有关此属性被使用或合并的更多信息?我会继续阅读。感谢您的辛勤工作。