You are here: Reference > HTML > attributes > language (script, a, abbr, ...)

language attribute (script, a, abbr, ...)

Browser support:
Sets the scripting language for the current element. Use it only for the script element.
This attribute is deperecated in HTML 4.01.
JavaScript page for this attribute: language. You can find other example(s) there.

Possible values:

String that sets the scripting language.
Some of the supported languages:
JavaScript
The language is JavaScript.
JavaScript1.1
The language is JavaScript 1.1.
JavaScript1.2
The language is JavaScript 1.2.
JavaScript1.3
The language is JavaScript 1.3.
JavaScript1.4
The language is JavaScript 1.4.
JavaScript1.5
The language is JavaScript 1.5.
JavaScript1.6
The language is JavaScript 1.6.
JavaScript1.7
The language is JavaScript 1.7.
JavaScript1.8
The language is JavaScript 1.8.
JScript
The language is Microsoft JScript.
VBS
Same as VBScript.
VBScript
The language is Microsoft Visual Basic Scripting Edition.
XML
The language is Extensible Markup Language (XML).
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the language attribute:
<head>
    <script type="text/javascript" language="JavaScript"></script>
</head>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content