Java Script | HTML: Java Script is the web programming language. It creates the behaviour to the html elements.
Here is the Javascript.html:
- <!DOCTYPE html>
 - <html lang="en" dir="ltr">
 - <head>
 - <link rel="stylesheet" href="css/stylesheet.css">
 - <title>JavaScript in Html</title>
 - </head>
 - <body>
 - <!-- What is JavaScript, Use of JavaScript, and Where to use JavaScript -->
 - <p>Here is the way to use JavaScript</p><br>
 - <!-- Internal -->
 - <script>
 - function oursScript() {
 - document.getElementById("script001").innerHTML = "First JavaScript!";
 - }
 - </script>
 - <br>
 - <button type="button" onclick="oursScript()">Click</button><br>
 - <p id="script001"></p>
 - <br>
 - <!-- External -->
 - <script src="js/javascript.js"></script>
 - <br><br>
 - <!-- Inline -->
 - <button type="button" onclick="window.print()">Check it Out</button>
 - </body>
 - </html>
 
Web view of Html:
Here is the Video:

Comments
Post a Comment