Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Is the usage of text/javascript still supported in a <script> tag? When JavaScript launched, the type attribute was used in the <script> tag. Is it still essential?
In an HTML page, mostly text/javascript is used in the <script> tag.
Here’s an example
<script type="text/javascript">
</script>
However, the introduction of HTML5 brought some new improvements. JavaScript became the default language for HTML5 and modern browsers. Therefore, now adding text/javascript isn’t required in <script> tag.