Skip to main content
Richard Hill - Online Learning
An Introduction to XMLZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPrevious
Next Section
4. XHTML
  


CDATA page 11 of 11


When we write client-side validation scripts, or dynamic content in JavaScript or VBScript, we have to use special characters to make sure that the code is not interpreted as HTML.

XHTML has a specific declaration for such instances:

<script language="Javascript">

<![CDATA[

function clickme() {

alert("Hello")

}

]]>

</script>


Next Section
Main menuSection menuFeedbackPrevious
www.shu.ac.uk/schools/cms/teaching/rh1