• Post author:
  • Post category:Blog
  • Reading time:2 mins read
  • Post last modified:June 12, 2024

What HTML tag is used to indicate that we are embedding JavaScript code?

  • <execute>
  • <script>
  • <source>
  • <js>
Answers Explanation & Hints:

The HTML tag used to indicate that we are embedding JavaScript code is the <script> tag. This tag is used to define or reference external JavaScript files or to include JavaScript code directly within an HTML document. Here is an example of how the <script> tag is typically used:

<script>
// JavaScript code goes here
</script>

Alternatively, you can also reference an external JavaScript file by specifying the source using the src attribute within the <script> tag:

<script src="script.js"></script>

In both cases, the JavaScript code within the <script> tag will be executed by the browser.

For more Questions and Answers:

JavaScipt Essentials 1 (JSE) | JSE1 – Module 1 Test Exam Answers Full 100% 

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments