+ 8
For html4 type attribute is required because it has no default value.
https://www.w3.org/TR/REC-html40/interact/scripts.html#adef-type-SCRIPT
But for html5 it's optional. If you don't mention it , it will set to default value "text/javascript".