The puzzle of javascript


#1


Replace this line with your code. 

<script type="text/javascript" src="script.js"></script>
What I don't understand is in the newest version of HTML,which is named HTML5,the 'type' attribute of 'script' tag can be optional.Why it is criticized in Jquery couese?


#2

It is JS best practice to include the type attribute because before html5 it was imperative that the type attribute be there.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.