gpt4 book ai didi

validation - grails <元名称="layout"... w3c html5 [无效]标记验证

转载 作者:行者123 更新时间:2023-12-02 13:52:36 25 4
gpt4 key购买 nike

当我检查 html 5 标记验证服务时,我不想再收到这些错误:

Error Line 159, Column 51: Attribute name not allowed on element meta at this point.

<meta name="layout" content="main_profil"/>

Error Line 159, Column 51: Element meta is missing required attribute itemprop.

<meta name="layout" content="main_profil"/>
有没有办法解决这个问题?我需要 gsp 顶部的这个元标记来说明将使用哪个布局。

最佳答案

您收到的错误消息表明您有 <meta> <body> 中的元素页面的部分,当它应该在 <head> 中时部分。

但是,“布局”不是 <meta> 的有效名称。 HTML5 中的元素,因此您将无法阻止验证器为此报告错误。

您可以尝试在 WHATWG wiki 上注册“布局”名称但是验证者需要一些时间才能 catch 。

关于validation - grails <元名称="layout"... w3c html5 [无效]标记验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13062121/

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