Here in this article, I will demonstrate use of javascript in html. How javascript can be used to help you build webpages.
Javascript is just like implementing functions or procedures on webpages. Suppose on click of a button, you want to do some action or you want to pop out a message, you can use java script.
Java script can be embeded in your html body tag directly
<html>
<title>
Title of webpage
</title>
<body>
<script>
<!--You can write any javascript code here-->
</script>
body goes here
</body>
</html>
Or you can put your Javascript in a seperate file named anything.js and give a link in your html file as below.