Jump to content

Difference Between <script language="javascript" src=""> </script> And <script type="text/javascript" src=""> </script>


solution

Recommended Posts

The language attribute was deprecated in HTML 4.01, the type attribute is no longer required in HTML 5.

 

To summarize:

  • Never use the language attribute
  • Use the type attribute for HTML 4.01 and XHTML

For a modern page in HTML 5 you should not need either of them.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...