What is the correct way to include an external JavaScript file in an HTML document? <js href='script.js'></js> <script type='text/javascript' src='script.js'></script> <script src='script.js'></script> <link rel='stylesheet' href='script.js'>
Question
What is the correct way to include an external JavaScript file in an HTML document?
<js href='script.js'></js> <script type='text/javascript' src='script.js'></script> <script src='script.js'></script> <link rel='stylesheet' href='script.js'>
Solution
The correct way to include an external JavaScript file in an HTML document is:
<script src='script.js'></script>
Similar Questions
What is the correct syntax for referring to an external script called "script.js"?<script src="script.js"></script><script href="script.js"></script><script ref="script.js"></script><script link="script.js"></script>
Which HTML tag is used to include JavaScript in an html file?using <run>using <script>using <style>using <code>
Câu hỏi 61(Nhiều đáp án)Select all the correct ways to insert JavaScript code to a HTML page?Chọn tất cả đáp án đúng:Directly between <head> tagInline with element attribute (via onclick, onchange, ...)Inside <script> blockUsing external script via src attribute of <script> tag
Where is the correct place to insert a JavaScript?
Where is Client-side JavaScript code is embedded within HTML document(s) ?
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.