Question 41Asked in DSSSB TGT Computer Science (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

Which of the following is used to include JavaScript code within an HTML document?

  1. A<js>
  2. B<script>
  3. C<javascript>
  4. D<java>
Show answerHide answer

Correct answer: (B) <script>

Explanation

JavaScript is placed in HTML inside <script> ... </script> tags, either inline or with the src attribute.

From DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM)

This is question 41 of DSSSB TGT Computer Science PYQ (Technical), 13 Sep 2025, Shift 3 (5:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.