top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the usage of a canvas element in HTML 5?

+3 votes
313 views
What is the usage of a canvas element in HTML 5?
posted Sep 9, 2015 by Latha

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+2 votes
<canvas> is an element in HTML5 that we can use to draw graphics using scripting (that is most probably JavaScript). 

This element behaves like a container for graphics and the rest will be done by scripting. We can draw images, graphs and a bit of animations etcetera using a element.

<canvas id="canvas1" width="300" height="100">
</canvas>
answer Sep 10, 2015 by Shivaranjini
+1 vote

The HTML element is used to draw graphics, on the fly, via scripting (usually JavaScript). The element is only a container for graphics. You must use a script to actually draw the graphics.

answer Sep 10, 2015 by Manikandan J
...