1.

One of the main advantage of using src attribute is ____________(a) It becomes self-cached(b) It makes the HTML file modular(c) It restricts manipulation in the HTML file(d) It simplifies the HTML filesI got this question by my school principal while I was bunking the class.My question is from Embedding JavaScript in HTML in chapter Server-Side and Client-Side Scripting of JavaScript

Answer»

Right OPTION is (d) It simplifies the HTML files

Explanation: The main advantage of using the src ATTRIBUTE is that it simplifies your HTML files by allowing you to remove LARGE blocks of JavaScript code from them. HENCE separate files for css and javascript files are made to make the code modular and readable.



Discussion

No Comment Found

Related InterviewSolutions