Skip to main content

Command Palette

Search for a command to run...

HTML Canvas

Published
1 min readView as Markdown
HTML Canvas
S

A passionate Full Stack Software Developer 🚀 having an experience of building Web applications with JavaScript and some other cool libraries and frameworks.

The HTML <canvas> element is used to draw graphics, on the fly, via scripting (usually JavaScript).

The HTML <canvas> element is used to draw graphics on a web page.

The <canvas> element is only a container for graphics. You must use a script to actually draw the graphics.

Canvas has several methods for drawing paths, boxes, circles, text, and adding images.

HTML Canvas Can Draw Text

HTML Canvas Can be Animated

HTML Canvas Can be Interactive

HTML Canvas Can be Used in Games

Canvas Example

<canvas id="myCanvas" width="200" height="100"></canvas>

More from this blog

Shubham's blog

66 posts