November 2000
Intermediate to advanced
1152 pages
23h 32m
English
You use the <script> element to embed a script, such as those written in JavaScript in an XHTML document. You usually place this element in a document's <head> section, except when the code writes directly to the document's body, in which case you should place it in the document's body. This element is supported in XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, and XHTML 1.1. Here are the attributes of this element:
| Attribute | Description |
|---|---|
| charset | Gives the character encoding of the script contents. |
| defer | Tells the browser that the script is not going to generate any document content. |
| language | Specifies the scripting language. This attribute is required if the src attribute is not set and is optional ... |
Read now
Unlock full access