+ 1
1.uncaught syntax error: unexpected token<. 2. Change the text add your name here with your actual name using js
How to solved it? in chrome it shows unexpected error?what I do now? <!DOCTYPE HTML> <html> <head> <body> <p>Welcome</p> <button onclick="myFunction()">hit me</button> <p id="demo">Hello</p> <script> function myFunction(){ document.getElementById("demo").innerHTML="Hello Pavithra"; } </script> </head> </body> </html>
2 Réponses
0
<head> <head/>
Remove closing head tag from body.. Close it before opening body tag Or totally remove head tag.. Since there is no head...
+ 2
Share your code, so that we can help you.