Link to home
Start Free TrialLog in
Avatar of 1jaws
1jawsFlag for United States of America

asked on

Element 'script' is missing required attribute 'type'.

I get this error Element 'script' is missing required attribute 'type'. but actually it is not causing any problem for page to run, but it is bothering why? I can turn off this error from tools_ text editor- html , by unchecking show errors but i dont want to do that since something is causing this.. anyone knows?
Avatar of Pratima
Pratima
Flag of India image

if you have any script tag then it mush have type like this

<script type="text/javascript">

check in your code it it exists ?
Avatar of 1jaws

ASKER

wow thank you so much, I had like this <script language="javascript"> and it is showing error, do you know why? it seems good way to say <script language="javascript"> why it is not liking it...
<script language="javascript"  type="text/javascript" > 
Avatar of 1jaws

ASKER

ok, first one solved the problem but what do you mean second one you just wrote, is it same thing pretty much?? I am confused..
In tha same langaue you may have differnet type so...
Avatar of 1jaws

ASKER

ok, which one i should use in my asp.net page?
ASKER CERTIFIED SOLUTION
Avatar of Pratima
Pratima
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 1jaws

ASKER

THANK YOU!
No. Remove the language attribute. It's been deprecated for years.

The proper script tag to use is:

<script type="text/javascript">
> In tha same langaue you may have differnet type so...

No, you can't. The type specifies the language.