What is the use of <canvas> element | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the use of <canvas> element

3rd Nov 2016, 10:14 AM
Tushar
Tushar - avatar
5 Answers
+ 4
it is used to draw image, graphs or other graphics in html5. it is given an id and then JavaScript can be used to change properties and call methods and dynamically or simply draw. most of the browser's have it.
3rd Nov 2016, 1:27 PM
Sandeep Chatterjee
+ 4
draw graphics
20th Feb 2020, 9:32 AM
VISHNUPRIYAN V
VISHNUPRIYAN V - avatar
+ 1
also it can be used to draw objects.
3rd Nov 2016, 10:33 AM
Florian Schwarzer
+ 1
You can draw images in HTML5 this way, how about checking the HTML course here? It's explain well there with many examples.
3rd Nov 2016, 10:40 AM
Waldemar Alexander Sulej
Waldemar Alexander Sulej - avatar
0
draw graphics
17th Apr 2021, 10:31 AM
Khamir Desai
Khamir Desai - avatar