HTML5 Simplified Script Tag

By Santhosh N

This explains the modified script tag in HTML5 which is simple to use for the developers.

script tag in HTML5 can be written in the following way
<script src="scripts/myscript.js"></script>
Which otherwise would look something like as below in traditional previous versions of html.
<script type="text/javascript" src="scripts/myscript.js"></script>

In HTML5, script tag does not require type attribute as only scripting language allowed is javascript in HTML5.

Related FAQs

This explains the modified meta tag in HTML5 which is simple to use for the developers.
This explains the modified html tag in HTML5 which is simple to use for the developers.
HTML5 Simplified Script Tag  (1173 Views)