How do I use a DOCTYPE that validate?
I am trying to troubleshoot some issues on a website that is going live today and I keep getting this funny error in Firebug and on the W3C validation site
Here is my DOCTYPE code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Here is the error I get:
syntax error [Break On This Error] < !DOCTYPE html PUBLIC "-//W3C//DTD XHT.../xhtml1/DTD/xhtml1-transitional.dtd">
Any guidance on this seemingly simple task would be appreciated.
Thanks.
Seems you have the same problem here: http://blog.ryanrampersad.com/2008/09/06/syntax-error-break-on-this-error-doctype-html-public-w3cdtd-xhtml3orgtr-xhtml1-dtd-xhtml1-strictdtd/
check your script tags!
the following gives the same result:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script type="text/javascript" src=""></script>
</head>
<body>
</body>
</html>
链接地址: http://www.djcxy.com/p/89030.html
上一篇: Chrome插件说,页面是W3C有效的,但W3C验证器出现了90个错误
下一篇: 我如何使用验证的DOCTYPE?