views:

175

answers:

5

What is the use and purpose this , is it useful?

alt text

A: 

i believe its bug. "text/javascript shall be associated only with script tag not style tag!

jadook
+10  A: 

It's for "JSSS", or Javascript style sheets; see here for more info. It's nonstandard and never really caught on outside of Netscape's original proposal, which you can read here. I don't think most browsers today support this; I've certainly never seen a website that used it.

John Feminella
In fact, only supported in NS4.
Anonymous
Good lord, that’s right. I’d completely forgotten about that odd little branch of web development history.Just think, if that had caught on, jQuery might never need to have been written.
Paul D. Waite
What, JSSS gives you the `$()` function?
Mike DeSimone
it's strange if it's so old and outdated then why still dreamweaver has support
metal-gear-solid
@Jitendra » I guess that's the million-dollar question, isn't it? :)
John Feminella
A: 

Both <style></style> and <script></script> can be used without any 'type' attribute. Probably a sticky web tradition.

Mic
Good idea to always include them, though, since they're required in strict doctypes.
Bobby Jack
A: 

Most importantly, all browsers besides NS4 will ignore the block of code, when the type is unrecognized. Perhaps not important for the Style tag, but useful for the Script tag..

See more about templating with this at http://ejohn.org/blog/javascript-micro-templating/

Bill Bingham
A: 

Style type can not be "text/javascript". It should be only "text/css".

Hoque