1.

How to include javascript code in HTML?

Answer»

HTML provides a <script> TAG using which we can RUN the javascript code and MAKE our HTML page more dynamic.

<!DOCTYPE html><html> <body> <H1> <SPAN>This is a demo for </span> <u><span id="demo"></span></u> </h1> <script> document.getElementById("demo").innerHTML = "script Tag" </script> </body></html>


Discussion

No Comment Found