Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Stackorigin – The Community of Question and Answers

Stackorigin – The Community of Question and Answers Logo Stackorigin – The Community of Question and Answers Logo
Search
Ask A Question

Mobile menu

Close
Ask a Question
Home/ Questions/Q 46708
Next
In Process
hari
  • 0
hari
Asked: August 17, 20222022-08-17T15:15:36+00:00 2022-08-17T15:15:36+00:00In: Programming

Where should I put script tags in HTML markup?

  • 0
Where should I put script tags in HTML markup?
htmlscript
  • 3 3 Answers
  • 25 Views
  • 0 Followers
  • 0
Share
  • Facebook

    Related Questions

    • copy the content of a branch to a new local branch?
    • Import SQL file into mysql
    • MySQL: Access denied for user 'test'@'localhost'
    • git stash apply version
    • how to NOT display a block from parent template in django
    • Django TemplateDoesNotExist
    • Did you install mysqlclient?
    • ImportError : cannot import name 'ugettext_lazy'
    • reverse() and reverse_lazy() in Django
    • advantages and disadvantages of indexing in database?

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Forgot Password?

    Need An Account, Sign Up Here

    3 Answers

    • Voted
    • Oldest
    • Recent
    1. sam
      2022-08-17T15:17:54+00:00Added an answer on August 17, 2022 at 3:17 pm

      How To Add JavaScript to HTML

      You can add JavaScript code in an HTML document by employing the dedicated HTML tag <script> that wraps around JavaScript code.

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

      Generally, JavaScript code can go inside of the document <head> section in order to keep them contained and out of the main content of your HTML document.

       

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. sam
      2022-08-17T15:18:54+00:00Added an answer on August 17, 2022 at 3:18 pm

      You can add JavaScript code in an HTML document by employing the dedicated HTML tag <script> that wraps around JavaScript code.

      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.

      Generally, JavaScript code can go inside of the document <head> section in order to keep them contained and out of the main content of your HTML document.

      However, if your script needs to run at a certain point within a page’s layout — like when using document.write to generate content — you should put it at the point where it should be called, usually within the <body> section.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    3. hari
      2022-08-17T15:19:53+00:00Added an answer on August 17, 2022 at 3:19 pm

      The JavaScript code should be inserted between <script> and </script> tags in HTML. You can place the <script> tags, containing your JavaScript, anywhere within your web page, but it is normally recommended that you should keep it within the <head> tags.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp

    Sidebar

    Ask A Question

    Adv 120x600

    Looking for advertising?

    Consider These Things If You Appreciate What stackorigin Does: Stackorigin is a community where you can ask questions and find answers, for free to everyone. We would appreciate it if you bought us a coffee if you liked what we were doing.

    Buy me a Coffe

    Adv 120x600

    • Random
    • Answers
      • On: August 4, 2022
      • Answers: 0

      Best online Emsam no RX, Order emsam to canada

      • On: July 23, 2021
      • Answers: 0

      How to Set cellpadding and cellspacing in CSS?

      • On: July 4, 2023
      • Answers: 0

      ModuleNotFoundError: No module named 'Flask-Caching'

      • On: September 19, 2020
      • Answer: 1

      Where was the first International Pink Ball Test match played ...

      • On: August 5, 2022
      • Answers: 0

      Generic Diclofenac, Diclofenac forte czopki

    • sam
      sam added an answer Please go launch below link   https://digitalcloud.training/aws-sysops-administrator-associate-free-practice-exam-questions/ August 3, 2023 at 9:55 am
    • newoc
      newoc added an answer Absolutely! You can confidently utilize authentic and up-to-date Dumps that… July 22, 2023 at 7:31 am
    • strapcart_online
      strapcart_online added an answer Impotence is commonly seen in men between the ages of… July 21, 2023 at 8:26 am
    • lasop
      lasop added an answer If you're looking for the ultimate resource to excel in… July 19, 2023 at 5:00 am
    • bruceparker
      bruceparker added an answer Buy Dapoxetine Online is a medication primarily used for the… July 17, 2023 at 7:34 am

    Adv 120x600

    Trending Categories

    Health
    2050Questions
    , 4Followers
    Programming
    1296Questions
    , 0Followers
    Technology
    218Questions
    , 3Followers
    General Knowledge
    131Questions
    , 0Followers
    Business & Finance
    86Questions
    , 4Followers

    Adv 120×600

    Stats

    • Questions 4k
    • Answers 1k
    • Best Answers 105
    • Users 163

    Users

    Aluminium Die Casting Products Manufacturers

    Aluminium Die Casting Products Manufacturers

    • 0 Questions
    • 0 Answers
    irene1707

    irene1707

    • 0 Questions
    • 0 Answers
    Ductile Iron Casting Manufacturers

    Ductile Iron Casting Manufacturers

    • 0 Questions
    • 0 Answers
    Navratan

    Navratan

    • 0 Questions
    • 0 Answers
    AAC Blocks Manufacturers in Tamil Nadu

    AAC Blocks Manufacturers in Tamil Nadu

    • 0 Questions
    • 0 Answers

    Adv 120×600

    Explore

    • Recent Questions
    • Most Answered
    • Answers
    • No Answers
    • Most Visited
    • Most Voted
    • Random
    • Polls

    Footer

    Stackorigin - The Community of Question and Answers

    Stackorigin

    Stackorigin is the world’s largest Q&A networking site, Stackorigin community brings you the collaboration of all the various Questions and the related Answers given by the community.

    About

    • About Us
    • Contact Us
    • FAQ
    • Submit Guest Post Article on Technology, Education, Health, Apps, Gadgets, IoT, AI, Business, Digital Marketing and More

    Info

    • Privacy Policy
    • Terms and Conditions
    • Community Guidelines
    • Tags

    Products

    • Tutorials
    • Advertising
    • Categories
    • Corona
    • StackHow

    Follow

    © 2022 Stackorigin. All Rights Reserved.

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.