I sometimes notice a CSS or JS code surrounded with and ]]> tags. I couldn\'t find any explanation to this. What does CDATA do? Why
and ]]> tags. I couldn\'t find any explanation to this. What does CDATA do? Why
]]>
When you write inline javascript or CSS in an HTML file (using the script and style tags), Those CDATA comments prevent things like the HTML validators from catching false positives when validating an HTML document.
script
style