The Wayback Machine - https://web.archive.org/web/20211026170851/https://www.geeksforgeeks.org/web-technologies-questions-javascript-course-quiz-1-question-4/
Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

Web technologies Questions | JavaScript Course Quiz 1 | Question 4

  • Last Updated : 18 Apr, 2019

What is the correct syntax for referring to an external script called ‘gfg.js’?
(A) <script name=”gfg.js”>
(B) <script href=”gfg.js”>
(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

My Personal Notes arrow_drop_up
Recommended Articles
Page :