dcsimg
www.webdeveloper.com
Results 1 to 8 of 8

Thread: style type=" something else?

  1. #1
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972

    style type=" something else?

    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?

  2. #2
    Join Date
    May 2005
    Posts
    2,040
    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.

  3. #3
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    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 01: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

  4. #4
    Join Date
    Jul 2005
    Location
    USA
    Posts
    3,910
    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.

  5. #5
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    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

  6. #6
    Join Date
    Sep 2006
    Posts
    37
    I never bothered with the <stlye type> tag. I always used the <script embed> tag.

  7. #7
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    Kravvitz, yes I know, that was the premise of my question.

    Charles, yay! Now I know.

    GSZX1337, urm... they do entirely different things.

  8. #8
    Join Date
    Sep 2006
    Posts
    37
    Quote Originally Posted by the tree
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles