1. Home
  2. Computing & Technology
  3. Web Design / HTML

<script></script>

By Jennifer Kyrnin, About.com

<script> Description:

The <script> element inserts scripts into documents.

<script> Web Browser Support:

<script> Attributes:

<script> End Tag:

</script> REQUIRED

Contents:

An in-line script.

<script> Valid Context:

The <script> tag is valid within the following tags:
blockquote, body, button, center, dd, div, fieldset, form, head, iframe, li, noframes, noscript, object, p, td, th

<script> Usage:

  • standard script
    <script src="javascript" type="text/javascript">
    </script>
    <noscript>
    Display this text only if JavaScript is not available
    </noscript>

<script> Special Notes:

  • JavaScript, ActionScript, and VBScript are the most common languages for scripts on the Web.

More <script> Information:

Return to XHTML element (HTML Tags) Library

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. The script Element - scripts within documents - XHTML 1.0 HTML 4.0

©2008 About.com, a part of The New York Times Company.

All rights reserved.