<script>

Description

This element contains the scripts that will be executed in the page, and it can occur in either the <head> or the <body> section of the page.

Example


<html>/*from ww w.  j a va  2s. c o m*/
<head>
<script language="javascript" src="yourlinkedjavascriptfile.js"></script>
<script id="script1" language="javascript">

     //scriptcode declarations

</script>
</head>
<body>
     <script id="script2" language="javascript">
     
          //script code declarations
     
     </script>
</body>
</html>




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference