In: HTML5
9 Nov 2010Tweet HTML5 is definitely the next big thing in web development and it is already getting popular in development within no-IE environments such as iPad. Therefore I taught it might be nice to have basic HTML5 template prepared to start coding your own HTML5 templates. View the example of HTML5 template, and copy snippet to [...]
In: HTML5
8 Nov 2010Tweet HTML5 needs to have declaration as first thing in your HTML5 document. Users browser uses this tag to determine which HTML specification your document uses. The doctype in HTML 4.01 requires reference to DTD, because HTML 4.01 was based on SGML. HTML5 is not based on SGML, and does not require a reference to [...]
In: HTML5
19 Aug 2010Tweet As HTML5 introduced audio support, you no longer need to use flash plugins to play audio. HTML5 audio element lets you play audio files. At this moment not all of browsers support HTML5 audio, so it is a good thing to have a backup solution for those clients with an old, or non HTML5 [...]
In: HTML5|JavaScript
5 Aug 2010Tweet The canvas element is used to draw graphics on a web page. It can be used for 2D or 3D drawing. In this example, we shall be drawing a square in center of canvas element. So, in order to draw a rectangle you need to use fillRect function with parameters as shown: canvas.fillRect( X, [...]
In: HTML5
3 Jul 2010Tweet If you want to implement video HTML 5 player, you can do it by using following code: 1 2 3 4 5 <video width="640" height="480" controls="controls"> <source src="video.mp4" type="video/mp4" /> <source src="video.ogg" type="video/ogg" /> Your browser does not support the video HTML 5. </video>