HTML and CSS Reference
For browsers that ignore the <script> tag, the contents are masked
statements delimited by the comment tags. By using this skeleton for
all your <script> tags, you can be sure that all browsers handle your
document gracefully, if not completely.
documents must be within a special CDATA declaration, rather than
within comments. Hence, HTML browsers won't honor XHTML scripts,
and vice versa. Our only recommendation at this point is to follow the
popular browsers: write in HTML, but use as many of the features of
XHTML as you can in preparation for the future.
You may include more than one <script> tag in a document, located
ecutes the statements in order. Variables and functions defined within
to use a single <script> in the document <head> to define common
functions and global variables for the document and then to call those
sprinkled throughout the document.