Rectangle 27 73

In HTML 4, the type attribute is required. In my experience, all browsers will default to text/javascript if it is absent, but that behaviour is not defined anywhere. While you can in theory leave it out and assume it will be interpreted as JavaScript, it's invalid HTML, so why not add it.

In HTML 5, the type attribute is optional and defaults to text/javascript

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

I am not using HTML5 - Yes

Are you quoting that text from something?

@dholakiyaankit Please quote the source as well. Now people might think that, these are your own words.

Can you tell me where you got that from?

html -