The script tag must be placed in
A.head
B.head and body
C.title and head
D.all of the mentioned
Answers
Answered by
0
Answer for the given question is b. head and body
EXPLANATION:
Script tag is used in HTML if we are using JAVAscript. The script can be used in both head and body parts of the HTML code depending on when we want to run. The script tag can be used to declare the script internally or can be used to link externally by using the source ‘src’ code.
Answered by
0
Option B is the correct answer.
The script tag must be placed in head and body
Explanation:
- Script tag is an step which used in HTML and this is used in JAVAscript.
- In both head and body parts of the HTML code the script can be used depending on when we want to run the tag.
- It can be used to declare the script internally as well as it can be used to link externally by using the source ‘src’ code.
- The script tag will not be evaluated at all If the script tag is placed after the body tag, then, The script tag will not be evaluated at all.
- In order to use the script snippet in the <head> tag. is always recommended and is effective in the documents.
#SPJ6
Similar questions
History,
7 months ago
Physics,
7 months ago
English,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago
Physics,
1 year ago