Any time you include JavaScript verbiage in HTML document, you must enclose…
2018
Any time you include JavaScript verbiage in HTML document, you must enclose those lines inside a ____ tag pair.
- A.
<HTML> and </HTML>
- B.
<Body> and <\Body>
- C.
<Div> and <\Div>
- D.
<Script> and </Script>
Attempted by 100 students.
Show answer & explanation
Correct answer: D
To include JavaScript code within an HTML document, you must wrap the script lines inside <script> and </script> tags. This tells the browser to interpret the enclosed content as executable JavaScript rather than static HTML.