In this section, we will learn what HTML <script> element is and how to use it.
HTML <script> element is used in two ways:
- It’s a good practice to put <script> element within the body of HTML <body> element and right before its closing tag `</body>`.
HTML <script> Tag Syntax:
HTML <script> Tag Values
The value we set in the body of HTML <script> element is the script codes that we want it to be executed in that browser when the page is loaded.