Should I prefer using html tags seperatly or use them inside the script tag using Java script? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Should I prefer using html tags seperatly or use them inside the script tag using Java script?

As we all know that we can use html tags in Java script inside the script tag and the header tag. But when I started learning Java I knew this fact and I asked in this forum that which is a more convenient way. I hope I get good answers😀😀

7th Jun 2019, 2:33 PM
Kunsh-Tyagi
Kunsh-Tyagi - avatar
2 Answers
+ 8
1.Javascript and java are different. 2.Why would you use html tags inside script tag. 3. I think you are asking what is the best place to place your script....is it body or inside header.
7th Jun 2019, 7:31 PM
Mitali
Mitali - avatar
8th Jun 2019, 7:00 AM
Kunsh-Tyagi
Kunsh-Tyagi - avatar