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

相关文章

vue阻止冒泡事件 阻止点击事件的执行 &lt;div @click=&a...
尝试过使用网友说的API接口获取 找到的都是失效了 暂时就使用...
后台我拿的数据是这样的格式: [ {id:1 , parentId: 0, name:...
JAVA下载文件防重复点击,防止多次下载请求,Cookie方式快速简...
Mip是什么意思以及作用有哪些