gpt4 book ai didi

html - Google 隐私页面 html 无效

转载 作者:搜寻专家 更新时间:2023-10-31 22:09:46 28 4
gpt4 key购买 nike

查看 Googles Privacy Page 的 html 源代码标题是:

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Google Privacy Center</title>
<link rel="stylesheet" href="//www.google.com/css/privacy.css">
<h1><a href="/"><img src="//www.google.com/intl/en/images/logo_sm.gif" alt="Google"></a> Privacy Center</h1>

我注意到这里或页脚中没有body 标签。此外,没有结尾 </html> .

这是有效的标记吗?

最佳答案

HTML5(这是他们声明该页面的内容)允许您省略很多内容。例如,body 标签的开始和结束标签都是可选的,结束 html 标签 (ref) 也是可选的。

验证器 says it's valid ,但验证器对 HTML5 的支持也仍处于试验阶段。 YMMV

关于html - Google 隐私页面 html 无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3653184/

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