We will be talking about inline scripting later in this course.
Here we will talk about internal and external scripting.
Internal scripting, is done with the help of HTML tag htmlspecialchars()
This tag can be placed either in the head tag or body tag within the HTML file. The significance of its placement will be discussed later when we learn about the DOM API.
Internal v/s External script
The below-mentioned points can help you choose between these two ways of writing the script based on some parameters.