add script javascript html code example
Example 1: how to put javascript in HTML
<script>
//put your java script here
</script>
Example 2: how to add javascript in html
<script src="script.js"></script>
<script>
//put your java script here
</script>
<script src="script.js"></script>