InterviewSolution
Saved Bookmarks
| 1. |
What is the default value of the type attribute?(a) text/css(b) text/javascript(c) html(d) xmlI had been asked this question by my college director while I was bunking the class.This intriguing question originated from Embedding JavaScript in HTML topic in portion Server-Side and Client-Side Scripting of JavaScript |
|
Answer» RIGHT answer is (b) text/javascript Easy explanation: The default VALUE of the TYPE ATTRIBUTE is “text/javascript”. You can SPECIFY this type explicitly if you want, but it is never necessary. |
|