错误:属性值错误的text / html [英] Error: Bad value text/html for attribute

查看:71
本文介绍了错误:属性值错误的text / html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Error: Bad value text/html for attribute content on element meta: The legacy encoding declaration did not start with text/html;.
From line 5, column 2; to line 5, column 55
utf-8"/>↩

< meta http-equiv =content-typecontent =text / html/>↩< met>

遗留字符编码声明的语法:

字符串text / html;,可选地后跟空格,后跟charset =,后跟一个首选的编码名称,根据编码标准。示例:text / html; charset = utf-8









当我用我的网站查看html5错误时



http://validator.nu/



上面的错误出现了什么建议?





这是


< meta http-equiv =content-typecontent =text / html/>

<meta http-equiv="content-type" content="text/html" />↩ <met>
Syntax of legacy character encoding declaration:
The string text/html;, optionally followed by whitespace, followed by charset=, followed by a preferred encoding name according to the Encoding Standard. Example: text/html; charset=utf-8




when i check my website for html5 errors by using that

http://validator.nu/

the above error appeared any suggestions ?


the is

<meta http-equiv="content-type" content="text/html" />

推荐答案

您必须仔细阅读错误...



You have to read errors carefully...

Syntax of legacy character encoding declaration:
  The string text/html;, optionally followed by whitespace, 
  followed by charset=, 
  followed by a preferred encoding name according to the Encoding Standard. 
  Example: text/html; charset=utf-8





验证需要的是将charset = utf-8(或其他编码)添加到您的元数据库中,如下所示:



What the validation want is add charset=utf-8 (or other encoding) to your meta, like this:

<meta http-equiv="content-type" content="text/html; charset=utf-8" />





您还应该检查此验证服务: http://validator.w3.org/ [ ^ ]


这篇关于错误:属性值错误的text / html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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