Coding a button? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Coding a button?

Iā€™m trying to make a button as practice for what Iā€™m learning in the game development course, but the button isnā€™t showing up. Is there something wrong with my code? <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <canvas id="canvas" width=300 height=500 Your browser does not support the HTML5 cancas tag.</canvas> <button id="up">Up</button> </body> </html>

13th Feb 2022, 3:59 PM
ElizabethM
1 Resposta
+ 3
You miss > in opening canvas tag <canvas id="canvas" width=300 height=500>
13th Feb 2022, 4:03 PM
PanicS
PanicS - avatar