New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →

# canvas

Defines an element where you can draw graphics.

Example: Copy

<canvas>
  Fallback text for non-supported browsers
</canvas>

height

Defines the height of the canvas.

"50"

Default is 150.

width

Defines the width of the canvas.

"200"

Default is 100.