Skip to content
Related Articles

Related Articles

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 :

Start Your Coding Journey Now!