I have a doubt regarding this writing this below statement
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"/>
Here i didn't mentioned the type in the Second Statement.But still am getting the jquery or $ symbol.Cud any explain me ?
Here i am using VS 2010.
Browsers have, for many years, assumed that a script will be JavaScript unless the type attribute says otherwise. The HTML5 draft makes this explicit.
Note that the use of XML-style self closing tags is:
If you are writing HTML 4.01 (which is a sensible idea for most sites as it has mature QA tools) then you should be writing:
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js">
</script>
If you are writing XHTML 1.0 and jumping through the hoops needed to supply it to Internet Explorer 8 and lower, then you should be using the same syntax for script elements as HTML 4.01.
If you are writing HTML5, then you may omit the type
attribute, but the explicit end tag is still required.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With