3xy7s87jz
HelloWorld.py
3xy7s87jz
HelloWorld.py
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>Assignment 2 Question #2</title> <meta name='viewport' content='width=device-width, initial-scale=1'> </head> <body> <h2>The confirmation() Method</h2> <h2>SHRUTI SINGH </h2> <h3>0801IT191083</h3> <button onclick="myFunction()">Click the button to display a confirm box.</button> <script> function myFunction() { confirm("Button Pressed! Confirm the event"); } </script> </body> </html>
STDIN
STDIN
Output:
File "HelloWorld.py", line 1 <!DOCTYPE html> ^ SyntaxError: invalid syntax