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

前端之家收集整理的这篇文章主要介绍了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.f2er.com/html/229344.html

猜你在找的HTML相关文章