So let’s go and see how to do it.
These methods are:
- HTML <script> Tag: Inline Scripting
HTML <script> Tag: Inline Scripting
Note: when using the <script> element, we have the choice of either put the source code inside the body of the element or call the src attribute to set the address of the file that contains the source code. But remember, we can’t use both methods using one <script> element! It must be only one of them per each <script> element.
Browsers thus interpret each <script> element as they reach to them and run the instructions one by one from top to bottom for each <script> element.
HTML <noscript> Tag