Should I use cdata javascript?

470    Asked by MaryHoward in Java , Asked on Oct 11, 2022

What difference does this make:

[removed]

//<![CDATA[ ...code

Compared to this

[removed] ...code


Answered by Mason Lee

You should not use XHTML 1.0 anymore ( which is where you would use CDATA javascript). What is even more important, you should not have javascript inside your html files. Instead you should include external files via [removed][removed].


Your Answer

Interviews

Parent Categories