can we use script tag between body tags in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

can we use script tag between body tags in html

wannaknow

22nd May 2018, 4:50 PM
Abhigyan Khaund
Abhigyan Khaund - avatar
9 Answers
+ 8
yes, it supported in HTML5
22nd May 2018, 5:00 PM
Amethyst Animion
Amethyst Animion - avatar
+ 7
you can use it in both <head> and <body> tag
22nd May 2018, 4:51 PM
Amethyst Animion
Amethyst Animion - avatar
+ 4
Yes but add it at the end just before the end body tag.This is done so that HTML should load first and then the script.
22nd May 2018, 6:03 PM
Mitali
Mitali - avatar
+ 1
thnx bro
22nd May 2018, 4:52 PM
Abhigyan Khaund
Abhigyan Khaund - avatar
+ 1
is it supported in html5
22nd May 2018, 4:52 PM
Abhigyan Khaund
Abhigyan Khaund - avatar
+ 1
?
22nd May 2018, 4:53 PM
Abhigyan Khaund
Abhigyan Khaund - avatar
0
yes you can use <script> Inside body or inside head but much likely inside body or after ending body tag. usually coder prefer after ending body tag
22nd May 2018, 4:52 PM
Sudarshan Rai
Sudarshan Rai - avatar
0
thnx mitali
23rd May 2018, 2:57 AM
Abhigyan Khaund
Abhigyan Khaund - avatar
0
jfs triple i checked ur profile nd was shocked to see that u hve learned all the languages available on earth ;man!great work dude.
23rd May 2018, 3:06 AM
Abhigyan Khaund
Abhigyan Khaund - avatar