Introduction
- Empty
- Unquoted
- Double Quoted
- Single Quoted
Example
We can assign the text property of an input type as follows.
- <input type="text" value="Sibeesh" disabled>
- <input type="text" value=Sibeesh>
- <input type="text" value="Sibeesh" >
- <input type="text" value=’Sibeesh’ >
To make IE lower versions to read HTML5 elements:
Add The Shiv
- <!--[if lt IE 9]>
- <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
- footer{border:1px solid;}
Introduction to Canvas Element
- <canvas id="canvasExample" width="200" height="100"
- style="border:1px solid #ccc;">
- Bad Luck, It seems your browser won't support :(
- </canvas>
- var c = document.getElementById("canvasExample"); //Get the element
- var ctx = c.getContext("2d"); // Get the context for the element
- var grd = ctx.createLinearGradient(0, 0, 200, 0); //Create the line
- grd.addColorStop(0, "blue"); // Apply the colors
- grd.addColorStop(1, "white"); // Apply the colors
- ctx.fillStyle = grd; //apply the style
- ctx.fillRect(10, 10, 150, 80); // Fill
Introduction to SVG
- <canvas id="canvasExample" width="200" height="100"
- style="border:1px solid #ccc;">
- Bad Luck, It seems your browser won't support :(
- </canvas>
- <!DOCTYPE html>
- <html>
- <body>
- <table style="border:1px solid #ccc;">
- <tr style="border:1px solid #ccc;">
- <td style="border:1px solid #ccc;">
- <h2 style="text-align:center;">Canvas</h2>
- <canvas id="canvasExample" width="200" height="100"
- style="border:1px solid #ccc;">
- Bad Luck, It seems your browser won't support :(
- </canvas>
- </td>
- <td style="border:1px solid #ccc;">
- <h2 style="text-align:center;">SVG</h2>
- <svg width="200" height="200">
- <circle cx="100" cy="100" r="50"
- stroke="green" stroke-width="4" fill="yellow" />
- Bad Luck, It seems your browser won't support :(
- </svg>
- </td>
- </tr>
- </table>
- <script>
- var c = document.getElementById("canvasExample"); //Get the element
- var cctx = c.getContext("2d"); // Get the context for the element
- var grd = ctx.createLinearGradient(0, 0, 200, 0); //Create the line
- grd.addColorStop(0, "blue"); // Apply the colors
- grd.addColorStop(1, "white"); // Apply the colors
- ctx.fillStyle = grd; //apply the style
- ctx.fillRect(10, 10, 150, 80); // Fill
- </script>
- </body>
- </html>

Sibeesh VenuPosted Jan 5, 2015, 1:47 AM
Sanjay singh Thank you buddy.
Sanjay SinghPosted Jan 5, 2015, 1:31 AM
nice article sir