Open the HTML document that contains the canvas element in a Web editing application or a word processor.
Video of the Day
Place your text cursor before the "
Type the following into your HTML code:
The overflow attribute will enable scroll bars in your container.
Replace the width and height attributes with the pixel amounts you want to use to define the size of the div container. Make sure that the width and height values you choose are large enough to fit the entire size of your canvas element.
Place your text cursor after the "" tag.
Save the HTML document and upload it to your Web server to view the canvas element with scrolling.