如何修复解析模式&;html中的doctype错误?

如何修复解析模式&;html中的doctype错误?,html,character-encoding,doctype,Html,Character Encoding,Doctype,我尝试使用w3验证程序验证我的html代码。 结果之一是: Warning No Character Encoding Found! Falling back to UTF-8. None of the standards sources gave any information on the character encoding labeling for this document. Without encoding information it is impossible to reliab

我尝试使用w3验证程序验证我的html代码。 结果之一是:

Warning No Character Encoding Found! Falling back to UTF-8.
None of the standards sources gave any information on the character encoding labeling for this document. Without encoding information it is impossible to reliably validate the document. As a fallback solution, the "UTF-8" encoding was used to read the content and attempt to perform the validation, but this is likely to fail for all non-trivial documents. 
第二个错误是:

Warning Unable to Determine Parse Mode!
    the MIME Media Type (text/html) can be used for XML or SGML document types
    No known Document Type could be detected
    No XML declaration (e.g <?xml version="1.0"?>) could be found at the beginning of the document.
    No XML namespace (e.g <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">) could be found at the root of the document.
但是,当我单击网站上的“查看页面源”时,它会在开头显示:

<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="http://ijmra.is-best.net/xmlrpc.php" />
<title>my website</title>

我的网站
等等。。。。 我怎样才能纠正这些错误? ... 更新:w3验证程序用于此验证的源输入:

<html><body><script type="text/javascript" src="/aes.js" ></script><script>function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("7efc82a5df893398691d5e53fda9f0d9");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/";location.href="http://my-site.net/?ckattempt=1";</script><noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript></body></html>
函数toNumbers(d){var e=[];d.replace(/(..)/g,函数(d){e.push(parseInt(d,16));将e}函数返回hex(){for(var d=[],d=1==参数。长度和参数[0]。构造函数==数组?参数[0]:参数,e=“”,f=0;fd[f]?“0:”)+d[f]。toString(16);返回e.toLowerCase()}var a=toNumbers(“F655BA9D0968C635B4B=Tonb4b”)(“98344C2EE86C3994890592585B49F80”),c=t数字(“7efc82a5df893398691d5e53fda9f0d9”);document.cookie=“u test=“+toHex(slowAES.decrypt(c,2,a,b))+”;expires=Thu,37年12月31日23:55:55 GMT;路径=/“位置。href=”http://my-site.net/?ckattempt=1“本网站需要Javascript才能工作,请在浏览器中启用Javascript或使用支持Javascript的浏览器

您是否尝试过
?验证程序可能看不到浏览器看到的内容。在验证程序中,选择“更多选项”,然后选中“显示源代码”“复选框。运行验证,这将允许您检查验证程序看到的标记。@Mike感谢您的回复。是的,我使用了它,因为它显示在页面源代码中。但是你把html大写为html了吗?@Mike不,先生,它是:
。我必须用大写字母表示吗?您是否尝试过
?验证程序可能看不到浏览器看到的内容。在验证器中,选择“更多选项”,并选中“显示源代码”复选框。运行验证,这将允许您检查验证程序看到的标记。@Mike感谢您的回复。是的,我使用了它,因为它显示在页面源代码中。但是你把html大写为html了吗?@Mike不,先生,它是:
。我必须在首都吗?
<html><body><script type="text/javascript" src="/aes.js" ></script><script>function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("7efc82a5df893398691d5e53fda9f0d9");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/";location.href="http://my-site.net/?ckattempt=1";</script><noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript></body></html>