The canvas element reserves part or all of an HTML document for visuals rendered by JavaScript or WebAssembly through a 2D context or 3D APIs such as WebGL. section 3.8.1 section 3.1
Choose canvas for games, multimedia, or immersive experiences—not by default for content-based interfaces. It can also complement HTML and CSS for specific graphics, such as charts. Keep text and form controls in HTML and CSS unless you have a reason to accept the accessibility, usability, and discoverability challenges of rendering them on canvas. section 3.1 section 3.8.1





