top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Can you give an example of Canvas element how it can be used?

0 votes
330 views
Can you give an example of Canvas element how it can be used?
posted Nov 20, 2015 by Sathaybama

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

1 Answer

0 votes
<canvas id=“DGTCanvas” width=“500″ height=“400″>
</canvas>
<script type=“text/javascript”>
var DGTCanvas=document.getElementById(“DGTCanvas”);
var DGTText=DGTCanvas.getContext(“2d”);
DGTText.fillStyle=“#82345c”;
DGTText.fillRect(0,0,150,75);
</script>

This book is far better than any other learning material. It has very basic information that includes both HTML5 and CSS3 with sample code and comprehensive examples.

answer Nov 20, 2015 by Shivaranjini
Similar Questions
+3 votes

How and When is it used?

+2 votes

I need to create a charts.I wonder is it possible to create a chart in html5.Sorry am new to html5.If possible mean explain with example. Thx.

...