Can you use two script tags in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Can you use two script tags in html

<script>some code... </script> <script>some other code... </script>

8th Mar 2019, 3:26 PM
Dilip Adithya
Dilip Adithya - avatar
5 Answers
+ 4
Yes, you can use multiple <script> tags. They are executed in the order they appear in your webpage
8th Mar 2019, 3:30 PM
Austin
+ 4
Yeah but I think it's best if you use external script (javascript)
10th Mar 2019, 1:21 PM
MusabYK
MusabYK - avatar
+ 3
Yes
8th Mar 2019, 8:56 PM
Apoliten Apo
Apoliten Apo - avatar
+ 3
Yes you can do no issue occurs 👍
10th Mar 2019, 12:55 PM
Bhavnish Kumar
Bhavnish Kumar - avatar
+ 2
Hi
10th Mar 2019, 1:45 PM
Rajaul mondol