如何修复 HTML 验证错误 - 在 AMP 网站上
How to fix HTML validation errors - on AMP website
我创建了一个 AMP 网站 - https://full-moon-report.com/
它没有 AMP 错误,但是当我在 HTML 验证器中检查它时,它有很多 HTML 错误:
https://validator.w3.org/nu/?doc=https%3A%2F%2Ffull-moon-report.com
错误是:
//“放大器”或闪电符号都会发生这种情况。
Error: Attribute amp not allowed on element html at this point.
Error: Attribute custom-element not allowed on element script at this
point. </scri
Error: Attribute amp-custom not allowed on element style at this
point.
Error: Attribute amp-boilerplate not allowed on element style at this
point.
Error: Attribute action-xhr not allowed on element form at this point.
Error: Attribute submit-success not allowed on element div at this
point.
Error: Bad value for attribute role on element textarea.
Warning: Attribute [hidden] is not serializable as XML 1.0.
↩ ↩ ↩
所有错误都与放大器有关。
请问我做错了什么?
您正在尝试验证 AMP 文档,就好像它是 HTML。
我不知道有任何支持 AMP 的验证工具。
我创建了一个 AMP 网站 - https://full-moon-report.com/ 它没有 AMP 错误,但是当我在 HTML 验证器中检查它时,它有很多 HTML 错误:
https://validator.w3.org/nu/?doc=https%3A%2F%2Ffull-moon-report.com
错误是:
//“放大器”或闪电符号都会发生这种情况。
Error: Attribute amp not allowed on element html at this point.
Error: Attribute custom-element not allowed on element script at this point. </scri
Error: Attribute amp-custom not allowed on element style at this point.
Error: Attribute amp-boilerplate not allowed on element style at this point.
Error: Attribute action-xhr not allowed on element form at this point.
Error: Attribute submit-success not allowed on element div at this point.
Error: Bad value for attribute role on element textarea.
Warning: Attribute [hidden] is not serializable as XML 1.0.
↩ ↩ ↩
所有错误都与放大器有关。 请问我做错了什么?
您正在尝试验证 AMP 文档,就好像它是 HTML。
我不知道有任何支持 AMP 的验证工具。