HTML script tag

Where should be the script tag must be placed (bodytag/headtag)?

The < script > tag can be placed in the < head > section of your HTML, in the < body > section, or after the
</ body > close tag, depending on when you want the JavaScript to load.

Hi @prasidhprabudhan123,

As @gandlaakhil3 has answered, you can place the script places in various section. Script tag inside each section has a difference purpose. Refer the first answer https://stackoverflow.com/questions/436411/where-should-i-put-script-tags-in-html-markup

Do let me know in case you need further assistance.

thanks :slight_smile: