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?
Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
(2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.
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.
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.
Last edited by Charles; 10-04-2006 at 12:31 PM.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
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.
I never understood why Microsoft didn't call their extensions to CSS MSS. Then we could style the scrollbars and still validate.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Kravvitz, yes I know, that was the premise of my question.
Charles, yay! Now I know.
GSZX1337, urm... they do entirely different things.
Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
(2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.
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.
Bookmarks