FUNDAMENTALS OF COMPUTER

WEB BROWSERS TECHNOLOGY

WHAT IS WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Is this correct syntax to include JS Code inside HTML Page?<script type="text/javascript"> ____ </script>
A
Yes
B
No
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -To include an external JavaScript file, we can use the script tag with the attribute src . You’ve already used the src attribute when using images. The value for the src attribute should be the path to your JavaScript file. This script tag should be included between the <head> tags in your HTML document.

Detailed explanation-2: -The <script> Tag In HTML, JavaScript code is inserted between <script> and </script> tags.

Detailed explanation-3: -Answer. we can embed code inside HTML directly This statement is true.

Detailed explanation-4: -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.

There is 1 question to complete.