Home »
MCQs »
JavaScript MCQs
In which HTML element, we put the JavaScript code?
4. In which HTML element, we put the JavaScript code?
- <javascript>...</javascript>
- <js>...</js>
- <script>...</script>
- <css>...</css>
Answer: C) <script>...</script>
Explanation:
The JavaScript code is written inside the <script>...</script> tag/element.