adding html with javascript code example
Example 1: how to add javascript in html
<script src="script.js"></script>
Example 2: js create element
var newDiv = document.createElement("div");
document.body.appendChild(newDiv);
Example 3: how to add javascript in html
$(document).ready(function() {
// add your code here
})