HTML5 Input Types (Continue)

Input Type – range The range type is used for input fields that should contain a value from a range of numbers. The range type is displayed as a slider bar. You can also set restrictions on what numbers are accepted: <input type=”range” name=”points” min=”1″ max=”10″ /> Use the following attributes to specify restrictions for [...]

 Go to post page

July 20th, 2010 by earlan

HTML5 Canvas (Continue)

Understanding Coordinates The fillRect method above had the parameters (0,0,150,75). This means: Draw a 150×75 rectangle on the canvas, starting at the top left corner (0,0). The canvas’ X and Y coordinates are used to position drawings on the canvas.   More Canvas Examples Below are more examples of drawing on the canvas element:  - [...]

 Go to post page

July 17th, 2010 by earlan