Quackit Logo
FREE Hosting!
With every domain you register with ZappyHost you get FREE hosting.
Create free Flash websites

HTML script Tag

Print Version

The information on this page is based on HTML version 4.01 (which is the current version of HTML). The next version, HTML 5, is currently being written. Here's a list of HTML 5 tags.

The HTML script tag is used for declaring a script (such as JavaScript) within your HTML document.

Also see the HTML noscript tag for providing content to browsers that don't support your scripting language.

Example
<script type="text/javascript">
  document.write('The HTML Script tag allows you to place a
                    script within your HTML documents');
</script>
Attributes:
Attributes specific to this tag:
AttributeDescription
nameDefines the name of the parameter.
srcSpecifies a URI/URL of an external script.
typeSpecifies the scripting language as a content-type (MIME type).
languageSpecifies the scripting language, however, this attribute has been deprecated. Use the type attribute instead.
deferDeclares that the script will not generate any content. Therefore, the browser/user agent can continue parsing and rendering the rest of the page.
Other Attributes:
AttributeDescription
charsetDefines the character encoding that the script uses.
Try it yourself!


Also see the HTML 5 version of HTML tags

Enjoy this website?

  1. Add this page to your Favorites
  2. Link to this page (copy/paste into your own website or blog):
  3. Help support Quackit by making a donation

Oh, and thank you for supporting Quackit!

Need Website Content?
Get unique, quality digital content for your website.
  • 270+ Website Templates
  • 800+ Flash Templates
  • 25,000+ Images, Logos
  • 30,000+ e-Books
  • 15,000+ Scripts
  • 27,000+ Animated GIFs
  • 21,000+ Ringtones
  • ...and much more!
Get your content now!
$1.99 .info domain names!
© Copyright 2000 - 2010 Quackit.com