1.

What The Use Of Canvas Element In Html5?

Answer»

The canvas element is used to draw graphics images on a web PAGE by using javascript like below

&LT;canvas id="pcdsCanvas" width="500" height="400"></canvas> <script TYPE="text/javascript">
VAR pcdsCanvas=document.getElementById("pcdsCanvas");
var pcdsText=pcdsCanvas.getContext("2d");
pcdsText.fillStyle="#82345c";
pcdsText.fillRect(0,0,150,75);
</script>

The canvas element is used to draw graphics images on a web page by using javascript like below



Discussion

No Comment Found