Browse - Programming Tips - How do I declare javascript code in an html file?

Date: 2014jan16
Language: javaScript

Q.  How do I declare javascript code in an html file?

A.  Like this:

<script type="text/javascript"> ... your code goes here ... </script>
The old way:
<script language="javascript"> WRONG ... your code goes here ... </script>