微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

html – 什么是div itemtype?我有一个评论网站我的网站的itemtype的价值是什么?

如果我使用< div>标签itemprop =“review”itemscope itemtype =“http://mydomainname.com/Review”itemtype,那么我需要在我的网站上创建一个名为review的页面

解决方法

我建议你在 HTML5微数据上阅读 this tutorial.以下是该文档关于itemtype的摘录:

The itemscope attribute us used to indicate that the element it is
placed on and it’s children represent a microdata item. The itemscope
should be paired with an itemtype attribute that defines the microdata
vocabulary in use.

<p itemscope itemtype="http://www.data-vocabulary.org/Organization/">

Additional data …

Microdata vocabularies can be nested and can
be dependent on one another. For example,the organization microdata
vocabulary also contains an address as a member. The itemtype url can
point to anything. Think of it as just a unique character string that
varIoUs programs have agreed that when they see that specific ID,they
kNow how to parse and look for the itemprop tags in the sub-elements
to extract the meaning needed from the document.

有预定义的项类型值,或者您可以创建自己的值.它们可能是URL,但不一定是URL.

以下是关于这个主题的其他参考资料(Google搜索“html5 microdata”还有更多的内容):

http://net.tutsplus.com/tutorials/html-css-techniques/html5-microdata-welcome-to-the-machine/

http://diveintohtml5.info/extensibility.html

http://www.tutorialspoint.com/html5/html5_microdata.htm

原文地址:https://www.jb51.cc/html/229344.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐