Which HTML tag is used to embed JavaScript?
Correct answer
A. <script>
11 views
A. <script>
11 views
The <script> tag embeds JavaScript, either inline or from an external file with the src attribute: <script src="app.js"></script>.
<js> and <javascript> do not exist, and <code> only displays code as text.
Practise more Computer Science MCQs with answers and explanations on MCQsExam.com.
Asked in: Matric,FBISE
Not sure why the answer is A? Ask here and get an explanation.