How can I connect JavaScript and HTML? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I connect JavaScript and HTML?

<script> src="main.js" </script> it not working

1st Oct 2020, 4:29 PM
Szymon
Szymon - avatar
2 Answers
+ 5
Put that src attribute inside the tag <script src="main.js"></script>
1st Oct 2020, 4:45 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 1
RDC Thank you so much, I'm back alive.
1st Oct 2020, 5:22 PM
Szymon
Szymon - avatar