开发者

Javascript and W3C validity?

开发者 https://www.devze.com 2023-02-12 08:28 出处:网络
I have the impression that the use of javascript often breaks W3C xhtml/css validity. Is this true? If so, why and is there a way for me to use javascript in my webpages and still开发者_StackOverflow中

I have the impression that the use of javascript often breaks W3C xhtml/css validity. Is this true? If so, why and is there a way for me to use javascript in my webpages and still开发者_StackOverflow中文版 have them be W3C valid (html, xhtml, css)?


If you wrap your javascript in a //<![CDATA[ tag it will validate

https://developer.mozilla.org/en/properly_using_css_and_javascript_in_xhtml_documents


The answer of your question is yes. To avoid this read this link http://www.htmlhelp.com/tools/validator/problems.html#script

0

精彩评论

暂无评论...
验证码 换一张
取 消