在 HTML head 标签中使用 profile 属性
HTML 标记中的配置文件属性有何用途?
我碰巧在这里读到了它:http://www.w3schools.com/tags/tag_head。 .asp.
我无法理解这一点(http://www.w3.org/2002/12/namespace) 要么,因为它太技术性了(对我来说)。
我从来没有用过它。它的目的是什么?
What is the use of profile attributes in the HTML <head>
tag?
I happened to read about it in here : http://www.w3schools.com/tags/tag_head.asp.
I could not understand this(http://www.w3.org/2002/12/namespace) either, since it is too technical (for me).
I have never used it. What is the purpose it serves?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
HTML5
已从head
元素中删除了配置文件属性 (详细信息)。但是,您可以使用链接的
rel
属性来实现此目的。因此,
现在不再是
来自 W3,
简而言之,XMDP 引入了一种简单的方法来定义元素中使用的 URL 和含义,供人类和机器作为元信息词典。这是实现元素之间关系的初步尝试。
要了解更多相关内容,请查找答案末尾列出的参考文献。
IMO,由于 Rich Snippets 的引入和实现,最近实现语义关系的情况确实得到了改善,这允许多种格式来实现结构化数据。
如需了解更多信息,请访问 schema.org 和 常见问题解答。
以下是支持的标记格式
... 更多详细信息
在最近的更新中,还提供了作者和已发布内容的链接 (< a href="http://support.google.com/webmasters/bin/answer.py?hl=en&answer=1408986">仅限 Google+),添加以下内容:
参考资料/进一步阅读:
HTML5
has dropped the profile attribute from thehead
element (details).You could however, use a
rel
attribute to the links to achieve this.So, instead of
it is now
From W3,
Simply put, XMDP introduced a simple way to define URLs and meanings used in an element, to read and write by both humans and machines as a dictionary of meta information. It was an initial attempt to achieve relations between elements.
To read more on this, find the references listed at the end of the answer.
IMO, things have really improved in the recent past to achieve semantic relations thanks to introduction and implementations of Rich Snippets, which allows multiple formats for implementing structured data.
More information is available at schema.org and FAQ.
Here is the list of supported markup formats
... More Details
With recent updates, there is also linking of author, and content published (Google+ only), by adding this :
References / Further reading :
配置文件属性中的 URI 指向包含有关元数据的信息的文档。配置文件定义了
HTML 元标记
和HTML 链接标记
可以使用的属性。配置文件没有规定的格式。 HTML 5 不再支持 profile 属性。The URI in the profile attribute points to a document containing information regarding metadata. Profiles defines properties that may be used by the
HTML meta tag
and theHTML link tag
. There are no prescribed formats for profiles. The profile attribute is no longer supported in HTML 5.实际的 HTML 4 规范相对于一般名称空间的背景更好地解释了这一点。查看:
http://www.w3.org/TR/1999/REC- html401-19991224/struct/global.html#profiles
现实生活中的一个用途是明确您的元数据不仅仅是您的任意系统,而是遵循某人提出的系统。
例如,您可能希望对元数据使用都柏林核心规范。在网页上,您可以使用 profile 属性在 HEAD 元素中声明这一点,然后您的元标记将使用 Dublin Core 元素,如下所示:
The actual HTML 4 specification as opposed to the background on name spaces in general explains it better. Check out:
http://www.w3.org/TR/1999/REC-html401-19991224/struct/global.html#profiles
One real life use is to make it clear that your meta-data is not just an arbitrary system by you, but adheres to a system some one came up with.
So for example, you may want to use the Dublin Core specification for your meta data. On a web page you would state this in the HEAD element using the profile attribute and then your meta tags would use Dublin Core elements like so:
通常,文档的标题包含许多
标签,用于传达
向浏览器提供有关文档的附加信息。未来,作者们
可以使用标准文档元数据的预定义配置文件来更好地描述他们的
文件。配置文件属性提供与该配置文件关联的配置文件的 URL。
当前文件。
配置文件的格式以及浏览器如何使用它尚未定义;这
属性主要是未来开发的占位符。
从::
HTML 和XHTML:权威
指南,第六版,查克·穆夏诺和比尔·肯尼迪著。版权所有2007
奥莱利媒体公司,978-0-596-52732-7。
Often, the header of a document contains a number of
<meta>
tags used to conveyadditional information about the document to the browser. In the future, authors
may use predefined profiles of standard document metadata to better describe their
documents. The profile attribute supplies the URL of the profile associated with the
current document.
The format of a profile and how a browser might use it are not yet defined; this
attribute is primarily a placeholder for future development.
FROM::
HTML & XHTML: The Definitive
Guide, Sixth Edition, by Chuck Musciano and Bill Kennedy. Copyright 2007
O’Reilly Media, Inc., 978-0-596-52732-7.