Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
html5对微数据的验证有多重要?我如何修复它们?_Html_Validation_Microdata - Fatal编程技术网

html5对微数据的验证有多重要?我如何修复它们?

html5对微数据的验证有多重要?我如何修复它们?,html,validation,microdata,Html,Validation,Microdata,我在html5验证程序上检查了我的网页,发现了3种类型的错误: Error1: Attribute name not allowed on element link at this point. From line 19, column 5; to line 19, column 56 !" />↩ <link name="twitter:url" href="http://localhost/" />↩ Error2: Element link is missing

我在html5验证程序上检查了我的网页,发现了3种类型的错误:

Error1: Attribute name not allowed on element link at this point.
From line 19, column 5; to line 19, column 56
!" />↩    <link name="twitter:url" href="http://localhost/" />↩

Error2: Element link is missing one or more of the following attributes: itemprop, property, rel.
From line 19, column 5; to line 19, column 56
!" />↩    <link name="twitter:url" href="http://localhost/" />


Error3: Element meta not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)
From line 1506, column 19; to line 1506, column 72
          <meta itemprop="itemListOrder" content="Descending" />↩
Error1:此时元素链接上不允许使用属性名称。
来自第19行第5列;至第19行第56列
!" />↩    ↩
错误2:元素链接缺少以下一个或多个属性:itemprop、property、rel。
从第19行第5列到第19行第56列
!" />↩    
错误3:在此上下文中,元素meta不允许作为元素ul的子元素。(正在抑制来自此子树的进一步错误。)
来自第1506行第19列;至第1506行第72列
↩
错误1 无论
name
属性是什么,都不允许您卡在
链接中。也许有一个或多个浏览器实现了非标准的扩展,使得它可以做一些事情(可能每个浏览器都做不同的事情)。其他浏览器可能会忽略它

错误2 您的
链接
标记没有
itemprop
属性
rel
属性。大多数软件很可能完全忽略
链接
标记。有些软件可能会将链接用于某些内容,尽管部分内容缺失。如果我编写浏览器,缺少这些属性的
链接
标记将导致您的网站显示rickroll而不显示其他内容

错误3
您在
ul
标签下粘贴了
meta
标签。在这种情况下,您可能会将目标锁定在某个使用它的浏览器上(我不知道是什么)。其他浏览器可能会忽略它,或者使用它来执行您不打算执行的其他操作。

如果您希望有人提出修复建议,则需要发布html本身。如果您遇到验证错误,则您的一堆o'字节不是html 5。只有当你想让它成为HTML5时,修复它们才是重要的。如果你只需要一堆o’字节就可以了,你可以做任何你想做的事情。对不起,我忘了在stackoverflow.com中嵌入我的代码/你发布的错误报告就是你需要的全部帮助。它很清楚地告诉你出了什么问题。既然这是来自验证器的信息,您怎么能期望我们提供更多信息呢?我认为这是一个明确的问题:)