0
Please what is wrong with this html code and this Js code
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <canvas id="canvas" width="500" height="500"> Your browser does not support the HTML5 tag </canvas> </body> </html> window.onload=function(){ var canvas = document.getElementById("canvas"); var context = canvas.getContext("2d");}; <canvas> context.MoveTo(200,200); context.LineTo(200,200); context.Stroke(); </canvas>
1 Answer
+ 3
whats right in this?
You cant put js in canvas tag ;-;