Multiple choice technology web technology

Inside which HTML element do we put the JavaScript?

  1. <javascript>

  2. <script>

  3. <js>

  4. <scripting>

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

JavaScript code should be placed inside tags in HTML. Option A uses <javascript> which is not a valid HTML tag, options C and D use <js> and <scripting> which are also not valid standard tags for including JavaScript.