HTML <canvas> tag
HTML canvas tag:
This is a double tag. <canvas> This is the beginning tag and </canvas> this is the closing tag. This <canvas> element is use to draw on the fly, graphics, via scripting generally JavaScript. This <canvas> element is only a container for graphics, you must use a script to indeed draw the graphics. This tag using for draw graphics on the fly via scripting. This tag use only draw the graphics with script. This tag working in usually JavaScript for graphics drawing.This tag can be used for rendering graphs, game graphics, photo compositions, and even animations.
<canvas>=Graphics.
Copy this code and past your page.
Copy this code and past your page.
Example:
Result:
![]() Chrome | ![]()
Internet
Explorer
| Firefox | ![]() Opera | ![]() Safari | |
---|---|---|---|---|---|
<canvas>
| 4.0 | 9.0 | 2.0 | 9.0 | 3.1 |
- Elements Attributes: id,var,ctx, style etc.
- Html Version Differenc: Differences Between HTML 5 and 4.01.
The HTML <canvas> element is new in HTML5.
If you want to make graphics photo compositions, and even animations, use HTML<canvas> tag.
2. What is the using for <canvas> tag ?
3. What is the definition of <canvas> tag ?
4. What is the <canvas> tag mean ?
5. How can You make graphics photo compositions, and even animations, use HTML?