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.

  1. A.

    <HTML> and </HTML>

  2. B.

    <Body> and <\Body>

  3. C.

    <Div> and <\Div>

  4. 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.

Explore the full course: Up Lt Grade Assistant Teacher 2025