Open In App

Web technologies Questions | JavaScript Course Quiz 1 | Question 4

What is the correct syntax for referring to an external script called ‘gfg.js’?
(A) <script name=”gfg.js”>
(B) <script href=/javascript-course-quiz-1/”>
(C) <script src=”gfg.js”>
(D) None of these

Answer: (C)
Explanation: The ‘src’ attribute is the one which is used to link the javascript file to the HTML document.
Quiz of this Question

Article Tags :