Coding Edgar - How to draw lines with html canvas? 1. Include an identifiable Canvas tag. 2. Access the canvas as an HTML element. 3. Get the 2d Context of the canvas.
HTML Canvas | A Comprehensive Overview of HTML Canvas
Create Simple Paint Canvas using JavaScript - WebSpeaks