Inside which HTML element do we put the JavaScript?


Correct Option: D

AI Explanation

To include JavaScript code in an HTML document, we use the `` element.

Let's go through each option to understand why it is correct or incorrect:

Option A) <scripting> - This option is incorrect because there is no HTML element called <scripting>. The correct element to include JavaScript is <script>.

Option B) <javascript> - This option is incorrect because there is no HTML element called <javascript>. The correct element to include JavaScript is <script>.

Option C) <js> - This option is incorrect because there is no HTML element called <js>. The correct element to include JavaScript is <script>.

Option D) <script> - This option is correct because we use the <script> element to include JavaScript code in an HTML document. This is the correct answer.

The correct answer is D) <script>.

Find more quizzes: