canvas element, which you can think of as a blank canvas or sheet of paper. You can draw almost anything that you want on this canvas, such as lines, shapes, and text. The only limit is your imagination!
As our first step in using the canvas, create a new HTML document for the
canvas element, as shown in the following listing. Save this document as canvas.html:
<!DOCTYPE html> <html> <head> <title>Canvas</title> </head> ...