Script Code | WebReference

Script Code

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Script Code

<script> ... </script>

Description: Designates a scripting language, e.g., JavaScript.

Browser Compatibility: NN: 2.0+ / IE: 3.0+ / Opera: 4+

Attributes:
  • charset
  • defer
  • for
  • language*
  • src
  • type

* Deprecated

Code Example:

<script type="text/javascript">
<!--
  document.write("Hello world!")
//-->
</script>



Created: March 15, 2005

URL: http://webreference.com/html/reference/specs/