gpt4 book ai didi

html - 什么是 div 项目类型?我有一个评论网站 itemtype 对我的网站有什么值(value)?

转载 作者:技术小花猫 更新时间:2023-10-29 12:20:23 28 4
gpt4 key购买 nike

如果我使用 <div>标签 itemprop="review"项目范围 itemtype="http://mydomainname.com/Review" itemtype 那么我是否需要在我的网站上创建一个名为 review 的页面?

最佳答案

我建议您阅读 this tutorial在 HTML5 微数据上。这是关于 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.

有预定义的itemtype值,或者您可以创建自己的值。它们可以是 URL,但不一定是。

这里有一些关于该主题的其他引用资料(在 Google 搜索“html5 微数据”时有更多引用资料:

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

关于html - 什么是 div 项目类型?我有一个评论网站 itemtype 对我的网站有什么值(value)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12345458/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com