In HTML5 you can omit the
The script tag is placed inside the <head></head>. Have a look at the example below; the function called add is inside the<head></head>, which is executed when the button inside the <body></body> is clicked.
<script src="documentName.js"> </script>
The two types of comments are: