Click to See Complete Forum and Search --> : style type=" something else?
the tree
10-04-2006, 11:50 AM
I vaugely remember it being mentioned that <style> is never good enough and <style type="text/css"> should always be used because there are other styling languages.
But where can these mysterious and presumably useless languages be found?
drhowarddrfine
10-04-2006, 12:23 PM
The attribute 'type' is used in other elements besides the <style> tag. So type can be used, in its proper context, for text/html, image/gif, etc. I don't recall if there is anything from the xml camp that uses this differently.
Charles
10-04-2006, 12:26 PM
Inside of Netscape 4. It had its own special type "text/javascript". Yes, it's a JavaScript syntax, or rather it is JavaScript but you're in a style scope.
Kravvitz
10-04-2006, 01:42 PM
It allows more than one style language to be used with HTML. Which would be handy if browsers supported more than one.
Likewise with the <script> element. IE/Win supports JScript (implementation of ECMA Script which is the standard based on JavaScript and JScript) and VBScript.
Charles
10-04-2006, 02:11 PM
I never understood why Microsoft didn't call their extensions to CSS MSS. Then we could style the scrollbars and still validate.
GSZX1337
10-04-2006, 02:13 PM
I never bothered with the <stlye type> tag. I always used the <script embed> tag.
the tree
10-04-2006, 03:58 PM
Kravvitz, yes I know, that was the premise of my question.
Charles, yay! Now I know.
GSZX1337, urm... they do entirely different things.
GSZX1337
10-04-2006, 07:15 PM
Kravvitz, yes I know, that was the premise of my question.
Charles, yay! Now I know.
GSZX1337, urm... they do entirely different things.
Sry, I meant @import ""; (for CSS anyway) And I also embed flash documents in my web pages so no need for that tag for me.
Thanx for pointing that out.