COMPUTER FUNDAMENTALS

COMPUTER NETWORKS AND COMMUNICATIONS

INTERNET AND WEB TECHNOLOGIES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
We cannot Place JS Code in the body tag . True/false.
A
True
B
False.
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Question 5 Explanation: We can include JS Code inside body tag or in head tag.

Detailed explanation-2: -Adding JavaScript into an HTML Document You can add JavaScript code in an HTML document by employing the dedicated HTML tag <script> that wraps around JavaScript code. The <script> tag can be placed in the <head> section of your HTML or in the <body> section, depending on when you want the JavaScript to load.

Detailed explanation-3: -Where is the correct place to insert JavaScript? Explanation: Both the < head > section and the < body > section are correct.

There is 1 question to complete.