JavaScript
What is th ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
What is the correct and cross-browser way for referring to an external script called "mootools.js"?
<Javascript src = "mootools.js" />
<Javascript src = "mootools.js" type = "text / javascript"> </ javascript>
<Script src = "mootools.js" />
<Script type = "text / javascript" src = "mootools.js"> </ script>
<Script source = "mootools.js" />
<Include src = "mootools.js" type = "text / javascript"> </ include>
Explanation
Cross-browser option is the only option with the closing script. For example IE6 requires a closing tag.
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
J
avaScript
Quiz
Login to learn JavaScript
or
Read more about
JavaScript Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment