canvas element
An HTML element that provides a blank bitmap area which scripts draw on pixel by pixel.
In more detail
Because a canvas is only pixels, its content is invisible to screen readers unless you provide a text alternative. Drawing apps set touch-action: none on the canvas so finger movement draws instead of scrolling the page.
Related terms
- touch-action — The CSS property that tells the browser in advance which touch gestures it should handle itself, such as vertical panning, and which to leave to your code.
- bitmap — An image stored as a grid of coloured pixels, such as a screenshot.
Taught in
- Passive Listeners, Scroll Performance And Touch Interactions — Frontend Architecture & Web Platform
- requestAnimationFrame vs requestIdleCallback: High-FPS Work — Frontend Architecture & Web Platform