Академический Документы
Профессиональный Документы
Культура Документы
What is HTML 5 ?
In 1999, there are HTML and HTML 4.01 were invented by W3C. Recently, World Wide Web Consortium (W3C) & the Web Hypertext Application Technology Working Group (WHATWG) invented HTML 5. Before 2006, WHATWG was working on web forms and application, while W3C was working on XHTML 2.0. In 2006, they both W3C and WHATWG decided to create new version of HTML, which have combine feature of WHATEG and W3C. So then HTML 5 is come into existence.
4.
Note : The browser IE 8 and earlier version do not support <canvas> element.
Do not forget to specify id attribute because later it is use to refer into the script. (You may have more than one canvas element on one webpage, so id is become mandatory.) Define width and height to specify the area of canvas.
The fillStyle property can be a CSS color, a gradient, or a pattern. The default fillStyle is #000000 (black). The fillRect(x,y,width,height) method draws a rectangle filled with the current fill style.
Then the next line, call getContext() method. You must pass the 2D string to the getCotext() method. getContext(2D) is the built in HTML 5 object.
Then the next line, call getContext() method. You must pass the 2D string to the getCotext() method. getContext(2D) is the built in HTML 5 object.
To be continued