Sign in to follow this  
johnnyBravo

[web] Whats the use of calling script type="text/javascript"?

Recommended Posts

And how does it know that it is javascript? I agree that most <script> tags are referring to JS but sometimes a strange webmaster may choose to use VBScript or some obscure thing like that. And the text part is probably useless.

At least that's what I think :).

Cheers!

Share this post


Link to post
Share on other sites
Quote:
Original post by fyhuang
And the text part is probably useless.
MIME, Multipurpose Internet Mail Extensions, categorizes all data according to five media types: text, image, audio, video and application (for application-specific or executable). This allows mail handlers to determine which applications to invoke, by default, to handle the content or how to display it. The MIME classifications have been coopted by XHTML because it strives to be a generic web content structure description language (with presentation elements pushed off to CSS).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this