Why write <script type="text/javascript"> when the mime type is set by the server?

Posted by Christopher Altman on Stack Overflow See other posts from Stack Overflow or by Christopher Altman
Published on 2010-04-24T21:45:39Z Indexed on 2010/04/24 21:53 UTC
Read the original article Hit count: 222

Filed under:
|
|
|
|

My understanding is that mime types are set by the web server. Why do we add the type="text/javascript or type="text/css" attribute? Isn't this a useless and ignored attribute?

© Stack Overflow or respective owner

Related posts about mime-type

Related posts about html