The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Why using <script type="text/javascript">

Dreamweaver says that neither Netscape6 or Internet Explorer 6 support the type attribute of the script tag. The only reason that I ever included it was for validators. However, if none of the major browsers are picking it up, is there any non-pedantic point to using it in additional to language=""?

As was previously stated the type refers to MIME type and yes Netscape 6.22/Mozilla does understand this, as does Microsoft IE 6.0, for example; when adding CSS you might for instance use; type="text/css"

The "language" attribute within <script> was designed to determine the scripting language, which by default is normally JavaScript that goes back to the early Netscape browsers.

Actually, from testing neither IE6 or Netscape6 do anything with the type attribute: you are just as weel to leave it on or off regardless of what scripting language you are using. IE6 will be just as happy with <script> no matter what language is inside the tags.

I would have to disagree a little with "neither IE6 or Netscape 6 do anything with the type attribute" some browsers may not do anything with the certain type attributes, and yes Micro$oft IE had a major security flaw because it ignored "type".

Albeit it is especially useful for defining which specific helper application/program the browser uses to view the file.