Html Canvas Attributes And Its Example

Canvas Attribute :

Canvas provides the means for incredible and efficient animations with the added bonus of no Flash; these developers can flash their awesome JavaScript skills instead. Here are nine unbelievable canvas demos that will make your jaw drop!

HTML5 element <canvas> allows you an easy and powerful way to draw graphics using JavaScript. It can be used to draw graphs, make photo compositions or do simple animations. First introduced in WebKit by Apple for the OS X Dashboard, <canvas> has since been implemented in browsers. Today, all major browsers support it.


Example :

Output :