@ 翁玉礼 HTML5 Discuss
Compare to html4 Canvas Video and audio Local offline store New form control
Canvas var canvas=document.getElementById('myCanvas'); var ctx=canvas.getContext('2d'); //get context ctx.fillStyle='#FF0000'; //draw color ctx.fillRect(0,0,80,100); //fill in
Video(new) Tips:Your browser not support video markup
Video(old) OR
offline storage localStorage //no time limit localStorage.lastname=“leon"; document.write(localStorage.lastname); sessionStorage //for one session sessionStorage.lastname=“leon"; document.write(sessionStorage.lastname);
New form control 、 url 、 number 、 range 、 date pickers 、 search 、 color…
Do you start to write with html5? Thanks!