Page 1 of 1

Doubt

Posted: Wed May 06, 2009 5:36 am
by s2009
Hi all,

I am a beginner learning JavaScript.

When I include the script tag in the HTML file which one should I follow?

<script type = "text/javascript">

<script language = "javascript">


Which of the above two tags should be used and in what situations both the tags should be used?

Please help me out.

Thanks in advance!!

Re: Doubt

Posted: Wed May 06, 2009 11:29 am
by kaszu
Have you tried to search? :roll:
You should use 'type', because 'language' was deprecated and your code won't validate if it will be used.