获取“Stray end tag html”来自W3C Validator [英] Getting "Stray end tag html" from W3C Validator

查看:568
本文介绍了获取“Stray end tag html”来自W3C Validator的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用W3C的验证程序检查我的(HTML5)网站并收到以下错误:

I'm checking my (HTML5) site using W3C's validator and getting the following error:

Stray end tag html. 
<html lang="en-US">

错误标志位于收盘点>。
这条线有什么问题?它似乎完全正确。

And the error sign is on the closing ">" there. What is wrong with that line? It seems to be exactly right.

推荐答案

这是验证为html5的最小html( lang =en-US)

this is the minimum html that validates as html5 (except for the lang="en-US")

<!DOCTYPE html>
<html lang="en-US">
  <head>
    <title></title>
  </head>
  <body>
  </body>
</html>

你应该至少拥有这种结构

You should have at least this structure

这篇关于获取“Stray end tag html”来自W3C Validator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆