Glubase - share your knowledge


All / Computers / Programming / HTML / XHTML





  • View Command

HTML / XHTML Reference

HTML / XHTML script definition

Syntax

<script> ... </script>

Description

Defines a script.

Attributes

Attribute Description
type

The type of script/document.

[ text/javascript | text/html | image/jpeg | audio/mpeg | etc.]  ContentTyp

language = cdata  
src = uri The URI to the script.
charset Character encoding.

Common attributes.

Example

[Try this example yourself]
<script type="text/javascript">
  document.write("Hello World!")
</script>

Output

  • Comments

No comments added.