What is the difference in various ways of defining a script?
The ways I am talking about is this
<script>....</script><script language="javascript">.....</script><script type="text/javascript">...........</script>
Since, they all do same things, what is different?
According to w3c spec,
typeattribute is required, and determines script language, whereaslanguageattribute (which does more or less the same) is deprecated in favor oftype, so you should usetypeattribute.