Doubt

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
s2009
Forum Newbie
Posts: 20
Joined: Thu Apr 30, 2009 1:20 am

Doubt

Post 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!!
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: Doubt

Post 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.
Post Reply