Difference between these two things

I have a doubt regarding this writing this below statement 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………………………………………. The first one specifies the MIME type explicitly. Your browser may be reading the file as Javascript by default. But doing this …

via Asp.Net Developed Tutorials » Search Results » ajax:

Difference between these two things

I have a doubt regarding this writing this below statement
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.
.............................................

The browser will try to see what "type" or "language" the script is. But the first one is the better one.
.............................................

When no type attribute is specified in a script tag, the type value is by default "text/javascript" per HTML 5 specification.
As per Client-side JavaScript

For more info: Difference between these two things

Asp.Net Developed Tutorials » Search Results » ajax

Difference between these two things

Share this post:

Related Posts

Leave a Comment