Home
Do you remove "Language" from your script tag?
  v3.0 Posted at 24/08/2015 11:08 AM by William Yin

A few years ago, it was common to have the "language" attribute within the script tags. This attribute was used to specify the scripting language of the contents of this element.

Since these identifiers are not standard, this attribute has been deprecated in favor of "type".

<script href="script.js" language="javascript"></script>

Figure: Language attribute has been deprecated

<script href="script.js" type="text/javascript"></script>

Figure: The scripting language is specified as a content type

Read more on W3C website.

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:

    Comments: