LIVE Course for free

Rated by 1 million+ students
Get app now
0 votes
26 views
in General by (110k points)
closed by
Which of the following is suitable tag for java script in HTML?
1. <java><java>
2. <script></script>
3. <jvm></jvm>
4. <JS></JS>

1 Answer

0 votes
by (59.9k points)
selected by
 
Best answer
Correct Answer - Option 2 : <script></script>

The HTML <script> tag is used to embed or reference a client-side script such as JavaScript. This tag is also commonly referred to as the <script> element.

Syntax

There are two ways that you can use the <script> tag. You can either embed the code within the <script> tags or you can reference a file that includes the code.

<script src="/js/functions.js" type="text/javascript"></script>

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...