Will removing the type from a [removed] tag break in any browsers?

后端 未结 3 433
名媛妹妹
名媛妹妹 2021-01-01 21:01

In HTML5, you no longer need to include the type in a script tag when you are using JavaScript.

Are any common browsers (IE6+, Firefox 2+, Safari 3+, Opera 9+ or sim

3条回答
  •  独厮守ぢ
    2021-01-01 21:37

    The type attribute was useful a long time ago, when JavaScript was not standardized, along with differences between different versions of the same browser. You could use other languages like vbscript, but in the real world nobody has used it in years.

提交回复
热议问题