HTML canvas

Last Updated:

HTML canvas

The HTML canvas is an HTML tag that you can embed inside an HTML document for the purpose of drawing graphics with JavaScript.

Note: The HTML canvas can incorporate and manipulate video, add audio, and contain image.

Demo

HTML Online Editor
<!DOCTYPE html> <html> <body> <canvas id="mycanvas" width="510" height="310"> your browser doesn't support canvas tag. </canvas> <button id="btn">play</button> </body> </html>

Share this Page

Meet the Author