COMPUTER NETWORKS AND COMMUNICATIONS
INTERNET AND WEB TECHNOLOGIES
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>
|
Yes
|
|
No
|
|
Either A or B
|
|
None of the above
|
Explanation:
Detailed explanation-1: -Is this correct syntax to include JS Code inside HTML Page ? We cannot Place JS Code in the body tag .
Detailed explanation-2: -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.
There is 1 question to complete.