Copyright © tutorialspoint.com
The HTML <style> tag is used for declaring a script (such as JavaScript) within your HTML document.
NONE
<script type="text/javascript"> |
This will produce following result:
Hello Javascript! |
For more detail on <script> tag please check HTML Scripts chapter.
To Become more comfortable - Do Online Practice
Attribute | Value | Description |
---|---|---|
type | text/javascript application/ecmascript application/javascript text/vbscript | Specifies the scripting language as a content-type (MIME type). |
charset | charset | Defines the character encoding that the script uses. |
defer | defer | Declares that the script will not generate any content. Therefore, the browser/user agent can continue parsing and rendering the rest of the page. |
language | javascript livescript vbscript other | Deprecated - Specifies the scripting language. Don't use this attribute use the type attribute instead. |
src | URL | Specifies a URI/URL of an external script. |
Attribute | Description |
---|---|
xml:space | Sets the language code. |
Copyright © tutorialspoint.com