+ 5

Why is type="text/javascript" not required anymore in HTML5?

Why is type="text/javascript" not required anymore in HTML5? what would be the proper way to embed .js files in html5?

10th Aug 2018, 4:24 AM
PKA😎
PKA😎 - avatar
4 odpowiedzi
+ 7
Because in Html5 , Js is default scripting language. So no need to write this. And you can use internal way or external one. Whatever way you choose include script tag just above the closing body tag so that html and css can load properly. Hope this helps ☺️☺️.
10th Aug 2018, 4:31 AM
Meet Mehta
Meet Mehta - avatar
+ 1
it does... thank you 👍
10th Aug 2018, 5:43 AM
PKA😎
PKA😎 - avatar
+ 1
:)
10th Aug 2018, 5:48 AM
Meet Mehta
Meet Mehta - avatar
+ 1
Js is the default script language in html5
14th Dec 2018, 9:56 PM
Me&You
Me&You - avatar