HTML · Links and media

canvas

A bitmap drawing surface controlled by JavaScript. Provide fallback text and an accessible alternative.

Syntax
<canvas id="…"></canvas>

Example

Try it

More in this group

a area audio embed figcaption figure iframe img

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course