script element. A
For those wondering, yes you can move the
script tag to other sections of your HTML deocument; however, placing it in the
head is sufficient for almost all cases. A much less useful nugget is that you can tell the browser to use a different scripting language.
Inline HTML comment markers
// is a comment delimiter, which prevents the end comment tag
In XHTML, the method is somewhat different:
Note that both the
<![CDATA[ tags are commented out. This prevents the browser from mistakenly interpreting strings with XHTML tags as if they were actual XHTML tags.
Linking to external scripts
src="script.js" to the opening