gpt4 book ai didi

html lang 属性的 html 验证错误

转载 作者:行者123 更新时间:2023-12-03 21:29:31 26 4
gpt4 key购买 nike

我收到此错误消息:

This document appears to be Lorem ipsum text but the html start tag has lang="en". Consider using lang="zxx" (or variant) instead.

From line 5, column 32; to line 5, column 47

html lang="en"

For further guidance, consult Tagging text with no language, Declaring the overall language of a page and Choosing language tags.

If the HTML checker has misidentified the language of this document, please file an issue report or send e-mail to report the problem.

for html lang = "en" attribute



我现在该怎么办?

最佳答案

您正在使用 lorem ipsum,它不是英语。将语言属性更改为 zxx应该修复验证警告。 zxx在语言未知时使用。
您的选择:

  • 更改 enzxx --- html lang="zxx"
  • 用英文虚拟文本替换 lorem ipsum 并保留 en
  • 忽略警告,直到您使用真实内容更新页面

  • https://github.com/validator/validator/issues/321

    关于html lang 属性的 html 验证错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40210470/

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