<meta charset="UTF-8"> 未验证
<meta charset="UTF-8"> not validating
我正在为 class 做一个期末项目,但是当我尝试验证我的网站时,我总是收到错误消息。我得到的错误是:
Error: The character encoding was not declared. Proceeding using windows-1252
.
Error: A charset
attribute on a meta
element found after the first 1024 bytes.
At line 15, column 24
charset="utf-8">↩ <meta nam
Error: Changing character encoding utf-8
and reparsing.
From line 15, column 4; to line 15, column 25
-->↩ <meta charset="utf-8">↩ <m
Fatal Error: Changing encoding at this point would need non-streamable behavior.
At line 15, column 25
charset="utf-8">↩ <meta name][1]
我不确定为什么我一直收到这个,因为我以前在验证方面没有遇到过问题。我尝试将 <meta charset="utf-8">
移动到 header 中的第一个 child 元素,但最终导致了更多错误。
这是最上面的部分:(支持文件页面是一行。那行可能太大了吗?)
<!DOCTYPE HTML>
<HTML LANG="EN">
<HEAD>
<TITLE>NO. 83 COMICS</TITLE>
<!--
No 83 Comics Website (IS 139 674 Web Publishing Final Project)
Author: Nate Contini
Date: 12/06/2018
Filename: No83Home.html
Supporting files: Assets/Javascripts/modernizr.custom.62074.js,
fonts.googleapis.com/css?family=Marck+Scrhtmlipt,
https://fonts.googleapis.com/css?family=Montserrat, Paladin
Style.css,Assets/Images/no_83_logo_D6T_icon.ico,
connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2,
https://www.facebook.com/groups/508106072637180/,
https://twitter.com/share?ref_src=twsrc%5Etfw,
https://platform.twitter.com/widgets.js, https://www.tumblr.com/share,
https://assets.tumblr.com/share-button.js, no 83 home.html, No 83 Gallery
Page.html, creator page.html, newsletter Page.html,
https://www.amazon.com/, Assets/images/No 83 Logo 2.png, Paladin Bio
Page.html, Anne Sullivan Bio Page.html, Mr. Freedom Bio Page.html, Dale
Sulivan Bio Page.html,ID Bio Page.html, Obsidian Blaze Bio Page.html,Flash
Strike Bio Page.html,Nuclear Ruin Bio Page.html
-->
<META CHARSET="UTF-8">
<META NAME="VIEWPORT" CONTENT="WIDTH=DEVICE-WIDTH">
<SCRIPT SRC="ASSETS/SCRIPTS/MODERNIZR.CUSTOM.62074.JS"></SCRIPT>
<LINK HREF="HTTPS://FONTS.GOOGLEAPIS.COM/CSS?FAMILY=MARCK+SCRHTMLIPT" REL="STYLESHEET">
<LINK HREF="HTTPS://FONTS.GOOGLEAPIS.COM/CSS?FAMILY=MONTSERRAT" REL="STYLESHEET">
Error: A charset attribute on a meta element found after the first 1024 bytes.
…你在它之前有一个大量的评论,它本身就占用了大约 1025 个字节。
将 <meta>
元素移到该评论之前。
我正在为 class 做一个期末项目,但是当我尝试验证我的网站时,我总是收到错误消息。我得到的错误是:
Error: The character encoding was not declared. Proceeding using
windows-1252
.Error: A
charset
attribute on ameta
element found after the first 1024 bytes.At line 15, column 24
charset="utf-8">↩ <meta nam
Error: Changing character encoding
utf-8
and reparsing.From line 15, column 4; to line 15, column 25
-->↩ <meta charset="utf-8">↩ <m
Fatal Error: Changing encoding at this point would need non-streamable behavior.
At line 15, column 25
charset="utf-8">↩ <meta name][1]
我不确定为什么我一直收到这个,因为我以前在验证方面没有遇到过问题。我尝试将 <meta charset="utf-8">
移动到 header 中的第一个 child 元素,但最终导致了更多错误。
这是最上面的部分:(支持文件页面是一行。那行可能太大了吗?)
<!DOCTYPE HTML>
<HTML LANG="EN">
<HEAD>
<TITLE>NO. 83 COMICS</TITLE>
<!--
No 83 Comics Website (IS 139 674 Web Publishing Final Project)
Author: Nate Contini
Date: 12/06/2018
Filename: No83Home.html
Supporting files: Assets/Javascripts/modernizr.custom.62074.js,
fonts.googleapis.com/css?family=Marck+Scrhtmlipt,
https://fonts.googleapis.com/css?family=Montserrat, Paladin
Style.css,Assets/Images/no_83_logo_D6T_icon.ico,
connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2,
https://www.facebook.com/groups/508106072637180/,
https://twitter.com/share?ref_src=twsrc%5Etfw,
https://platform.twitter.com/widgets.js, https://www.tumblr.com/share,
https://assets.tumblr.com/share-button.js, no 83 home.html, No 83 Gallery
Page.html, creator page.html, newsletter Page.html,
https://www.amazon.com/, Assets/images/No 83 Logo 2.png, Paladin Bio
Page.html, Anne Sullivan Bio Page.html, Mr. Freedom Bio Page.html, Dale
Sulivan Bio Page.html,ID Bio Page.html, Obsidian Blaze Bio Page.html,Flash
Strike Bio Page.html,Nuclear Ruin Bio Page.html
-->
<META CHARSET="UTF-8">
<META NAME="VIEWPORT" CONTENT="WIDTH=DEVICE-WIDTH">
<SCRIPT SRC="ASSETS/SCRIPTS/MODERNIZR.CUSTOM.62074.JS"></SCRIPT>
<LINK HREF="HTTPS://FONTS.GOOGLEAPIS.COM/CSS?FAMILY=MARCK+SCRHTMLIPT" REL="STYLESHEET">
<LINK HREF="HTTPS://FONTS.GOOGLEAPIS.COM/CSS?FAMILY=MONTSERRAT" REL="STYLESHEET">
Error: A charset attribute on a meta element found after the first 1024 bytes.
…你在它之前有一个大量的评论,它本身就占用了大约 1025 个字节。
将 <meta>
元素移到该评论之前。