In the HTML 4.x version, the type
attribute is required ( W3 ).
This attribute specifies the scripting language of the element
contents and overrides the default scripting language. The scripting
language is specified as a content type (e.g., "text / javascript").
Authors must supply a value for this attribute. There is no default
value for this attribute.
Griffin: "Creators should fill in the value of this attribute, there is no default value for it."
In HTML 5, the attribute is optional , if you do not set the default will be text/javascript
( W3 )
The type attribute gives the language of the script or format of the
date. If the attribute is present, its value MUST be valid
type. The charset parameter must not be specified. The default, which
is used if the attribute is absent, is "text / javascript" .
Griffin: The default value if the attribute is missing is: "text / javascript".