Monday, November 3, 2014

HTML 5 NEW ELEMENTS


HTML5 is a core technology markup language of the Internet used for structuring and presenting content for the World Wide Web. It is the fifth revision of the HTML standard (created in 1990 and standardized as HTML 4 as of 1997) and, as of December 2012, is a candidate recommendation of the World Wide Web Consortium (W3C).





What is new in HTML5:

1. New Elements
2. New Attributes
3. Full CSS3 Support
4. Video and Audio
5. 2D/3D Graphics
6. Local Storage
7. Local SQL Database
8. Web Applications
9. This is example of syntax HTML5

Canvas tag in html5
Canvas tag is Defined graphic drawing using JavaScript.


Example
<canvas id="myCanvas" width="200" height="100" style="border:1px solid #000000;">
Your browser does not support the HTML5 canvas tag.
</canvas>
New media element:





New form element:




Example of JavaScript of canvas:

<script> 
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
ctx.fillStyle="#FF0000";
ctx.fillRect(0,0,150,75);
</script>



0 comments:

Post a Comment