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 have them be W3C valid (html, xhtml, css)?
I have the impression that the use of javascript often breaks W3C xhtml/css validity.
Share
If you wrap your javascript in a
//<![CDATA[tag it will validatehttps://developer.mozilla.org/en/properly_using_css_and_javascript_in_xhtml_documents