How can you include jQuery in an HTML document?
-
A
<script src="jquery.js"></script>
Correct answer
-
B
<link rel="stylesheet" href="jquery.css">
-
C
<div class="jquery"></div>
-
D
<meta name="jquery" content="1.0">
Correct answer
A. <script src="jquery.js"></script>
16 views
Explanation
To include jQuery in an HTML document, use the script tag with the source attribute pointing to the jQuery file.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ