Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

Practice exercises CHAPTER 12 503



  1. In the CanvasPage.html file, add a reference to the default.css, jQuery library, and
    default.js files.

  2. Add the title Canvas Snapshooter to your page. Your HTML page should look like the
    following.
    <!DOCTYPE html>

    Canvas Snapshooter







</body>
</html>


  1. In the element, add a

  2. Add a

  3. Add a element whose id is myCanvas. Set the width attribute to 360 and set
    the height attribute to 240. Inside the element, add a message for incompat-
    ible browsers. Your HTML page should look like the following.
    <!DOCTYPE html>














    You need a browser that supports HTML5 canvas!




Free download pdf