HTML Tutorial for Beginners 16 – Adding JavaScript to HTML




Yo my coding ninja fledglings, in this HTML lesson for beginners we’ll dive into adding some JavaScript into our HTML web page. JavaScript controls the interactivity of our web pages and can be added in a variety of ways to HTML.

We add JavaScript to HTML by using the script tag in the head of body, by referencing an external script file, or by adding some in-line scripting onto tags themselves.

For more front-end development courses & to black-belt your coding skills, head over to https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk

Comment with any questions and don’t forget to subscribe!

Original source


9 responses to “HTML Tutorial for Beginners 16 – Adding JavaScript to HTML”

  1. Hi Ninja! Placing the script tag either in the head tag or body tag works the same way for me. The page is rendered by the time the alert pops up in both cases. Can you please explain why?

Leave a Reply