Avadhesh Kumar Patel District Project Manager - Aligarh 14 months work experience in Panchayati Raj Department Sector as District Project Manager & 12 months work experience in IT Sector as Software Engineer. :-)
The canvas element is used to draw graphics images on a web page by using javascript like below <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>
Liked By
Write Answer
What the use of Canvas Element in HTML5
Join MindStick Community
You have need login or register for voting of answers or question.
AVADHESH PATEL
20-Oct-2012<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>