+ Reply to Thread
Results 1 to 3 of 3

Thread: Why type="text/ ???

  1. #1
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Why type="text/ ???

    I don't get it.

    In the script tag you're meany to put:

    Code:
    type="text/javascript"
    Why do you need to put the text bit?
    It's not as if anyone is going to put binary in there?
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  2. #2
    kkenny's Avatar
    kkenny is offline Lord Of The Keys kkenny is an unknown quantity at this point
    Join Date
    Feb 2008
    Location
    I REP THE BAY. (Bay Area, CA, USA)
    Posts
    1,950

    Re: Why type="text/ ???

    Well it's just how everyone (browsers and W3C) interpret the script text as. There's also text/css and the way they did things and a bunch of others if i dont recall. It's just generally accepted around the whole world of webdesign and code.
    kkenny - retired.
    -Became a Moderator/Staff Member on 4/23/08
    -Became Senior Mod on 8/28/08
    -Became Account Manager on 10/18/08
    -Left Staff and X10 in 2009.


  3. #3
    LHVWB's Avatar
    LHVWB is offline Lord Of The Keys LHVWB is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Australia
    Posts
    1,308

    Re: Why type="text/ ???

    Kkenny is correct, its a standard that you should follow and that is universally accepted. The reason for doing it may have been because the creators of the standard wanted to leave the possibility for adding more types apart from text. But at the moment it seems pointless because as far as I know text is the only one.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers