+ 1
What do you put inside the <canvas></canvas> tags?
2 Answers
+ 10
@Rose I usually add ids because it is easier for me to access it... But everyone codes in their own style.
Answering the question:
I would write something like: Your browser does not support canvas... If the browser does not read the canvas tag, it will display the text, and it will be better for the user to know why is the page blank ;)
+ 2
Mostly it's backgound js animations.
________________
The HTML <canvas> element is used to draw graphics on a web page.
The HTML <canvas> element is used to draw graphics, on the fly, via JavaScript.
The <canvas> element is only a container for graphics. You must use JavaScript to actually draw the graphics.
More info :
https://www.w3schools.com/html/html5_canvas.asp
(But better don't listen to them about "always add ID atribute to it"...
it's nonsence ,since we can easyly access it without id)