Since the language attribute of the <SCRIPT> tag is deprecated by the HTML 4 standard, should I use the type attribute instead?

Troy Niven

To keep things past (pre 4.0 browsers), present (5+ browsers), and future (xhtml standard), compliant, it is actually best to use both.

<script language="JavaScript" 
    type="text/javascript">
<!--

//Place your coding in here.
//This is presently a fully compliant
//Javascript template.
//01/01/01

//-->
</script>
Since unrecognized attributes are presently ignored, browsers that don't recognize one attribute or the other, will just ignore it, instead of throwing out an error.
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact