hyperlink - HTML do I need a mime type for the link tag? -


david crockford recommends ommitting type="application/javascript" attribute script tag. should same css link tag (omit "type=text/css")? googled "html link omit mime type" , variants , didn't find anything

per documentation <script>:

the type attribute gives language of script or format of data. if attribute present, value must valid mime type. charset parameter must not specified. default, used if attribute absent, "text/javascript".

now, let's take @ <link>:

the default value type attribute, used if attribute absent, "text/css".

the specification not clear on reason, contain this:

since default type text/css...

the type attribute purely advisory. modern browsers don't need if it's valid css.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -