1-5 Year Interview Que.Java Script

How to use JavaScript along with HTML?

JavaScript can be used along with HTML by including <script> tag in the HTML <body> tag.

Example:

<html> 
<body> 
<script> alert('Hello, World!') </script> 
</body> 
</html>
%d bloggers like this: