HTML 5 Is : The New HTML Standard that include :
Source :w3schools.com. Watch this out to see the code work with blogger: HTML 5 Creation.
- New Elements
- New Attributes
- Full CSS3 Support
- Video and Audio
- 2D/3D Graphics
- Local Storage
- Local SQL Database
- Web Applications
Above is the example code to make HTML 5 Canvas that i serve to you.
<canvas id="myCanvas">
<script type="text/javascript">
var canvas=document.getElementById('myCanvas');
var ctx=canvas.getContext('2d');
ctx.fillStyle='#FF0000';
ctx.fillRect(0,0,80,100);
</script></canvas>
<canvas id="myCanvas5">
<script type="text/javascript">
var canvas=document.getElementById("myCanvas5");
var ctx=canvas.getContext("2d");
var grd=ctx.createRadialGradient(100,50,5,60,50,50);
grd.addColorStop(0,"red");
grd.addColorStop(1,"white");
ctx.fillStyle=grd;
ctx.fillRect(0,0,150,100);
</script></canvas>
<canvas id="myCanvas6">
<script type="text/javascript">
var canvas=document.getElementById("myCanvas6");
var ctx=canvas.getContext("2d");
var grd=ctx.createRadialGradient(100,50,5,80,60,50);
grd.addColorStop(0,"yellow");
grd.addColorStop(1,"white");
ctx.fillStyle=grd;
ctx.fillRect(0,0,150,100);
</script></canvas>
Source :w3schools.com. Watch this out to see the code work with blogger: HTML 5 Creation.
0 Komentar untuk "Source Code HTML 5"
Tinggalkan opini Anda, untuk turut dalam postingan ini [komentar dimoderasi dulu].