Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    May 2012
    Posts
    58
    Member #
    31696
    Liked
    5 times
    So I'm in the process of learning HTML5. For a bit of practice, I copied by hand what I seen on the W3schools website. Of course, I made a few tweaks to the code just to see what would happen. After looking through it a few times, I've noticed that I made a few mistakes which I fixed. But now, I can't figure out what I did wrong.

    Here is the code

    <!DOCTYPE html>
    <html>
    <body>

    <canvas id="Canvas2" width="800" height="600" stylee="border:2px solid #FF0000;"></canvas>

    <script type="text/javascrip">

    var c=document.getElementById("Canvas2");
    var ctx=c.getContext("2d");
    ctx.fillStyle="#000000";
    ctx.fillRect(34,14,67,32)
    </script>

    </body>
    </html>

  2.  

  3. #2
    Senior Member medlington's Avatar
    Join Date
    Nov 2005
    Location
    Sheffield, UK
    Posts
    377
    Member #
    11968
    Liked
    4 times
    Just starting HTML5 myself so cant be much help but I think you may have a typo in your first line

    stylee


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:56 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com