473,387 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Should I use script language attribute or script type?

vikas251074
198 100+
Hello everybody,
Should I use script language attribute or script type? Is there any difference? Until now I have used script language attribute in my all programme where javascript has to be used.

Thanks and regards,
Vikas
Jun 4 '08 #1
4 2228
gits
5,390 Expert Mod 4TB
use the type attribute, the language attribute is deprecated ... have a look here ... and using it could cause the page to fail HTML-validation with some doctypes ...

kind regards
Jun 4 '08 #2
rnd me
427 Expert 256MB
the default language for virtually all browsers is javascript. neither attribute is needed, unless you are mixing scripting languages on a single page. the type attrib is required by xhtml, but your script could care less.
Jun 4 '08 #3
gits
5,390 Expert Mod 4TB
even when mixing languages in a page the language attribute is useless ... since you just could use the type attribute too ... there is no need ever to use deprecated attributes unless any browser explicitly cares about ...

kind regards
Jun 4 '08 #4
vikas251074
198 100+
Thanks very much. I got it. And I think this thread will be good for many.

Thanks and regards,
Jun 4 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: George Hester | last post by:
changes the version of Javascript which would be called? I read that the language attribute can change the version of Javascript that is executed with respect to just using the type attribute. I...
33
by: patrick_woflian | last post by:
hey guys, im just writing a basic calculation at the moment, before building on it for an A-Level piece of work. i can add/divide etc... two numbers together yet i am having a major problem with...
21
by: hemant.singh | last post by:
Hello all, I am try'g to send window.location.href to the server script who will generate dynamic javascript according to the referral name comg in as param Now bcz <script language="javascript"...
3
by: Mike Rand | last post by:
Hi, I am trying to find "clear" definitions of the "type" attribute in the <script> element. <script language="javascript" type="text/C#"> Specifically, I am trying to find out: 1) Why it is...
12
by: mantrid | last post by:
Can anyone see why this simple script doesnt make the element visible? It starts of as hidden but will not show when the button is clicked. This has worked for me before but I cannot see what is...
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
4
by: Brian Cryer | last post by:
Out of curiosity, when I use onclick="...some JavaScript ..." why do I not need to flag that its JavaScript, but when I define a script on a page I do need to tag it (<script...
9
by: Steve | last post by:
Hi; I've being going through some legacy code on an old JSP site I have been patching. I noticed that when I save the JSP down to my PC as an HTML file I get this javascript error in IE 6 ( ...
8
by: howa | last post by:
Just found a funny things.. in HTML4's dtd, http://www.w3.org/TR/html4/strict.dtd language is not valid, i.e. <!ELEMENT SCRIPT - - %Script; -- script statements --> <!ATTLIST...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.