html5 introduction

24
Why you should upgrade to… HTML5 Praveen Nair Microsoft MVP, PMP http://www.ninethsense.com/

Upload: praveen-nair

Post on 10-May-2015

220 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Html5 Introduction

Why you should upgrade to…

HTML5Praveen NairMicrosoft MVP, PMPhttp://www.ninethsense.com/

Page 2: Html5 Introduction

Buzz WordsResponsive Web Design

RWD

Page 3: Html5 Introduction

What is HTML5

HTML + JavaScript + CSS3

Page 4: Html5 Introduction

What is HTML5 Exam – 070-480

HTML + JavaScript + CSS3+ jQuery

Page 5: Html5 Introduction

Easy to start• Just <!DOCTYPE html>• No more - <!DOCTYPE HTML PUBLIC

"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

Page 6: Html5 Introduction

Self-validation of form elements<input type="email" placeholder="email address"

required />

Page 7: Html5 Introduction

Make elements editable<div contenteditable>Test</div>

Page 8: Html5 Introduction

Easier code maintenance• <section>• <header>• <footer>• <article>• <aside>• <nav>

Page 9: Html5 Introduction

Media<audio controls><source src=“test.mp3" type="audio/mpeg"></audio>

<video width="320" height="240" ><source src="movie.mp4" type="video/mp4"></video>

Page 10: Html5 Introduction

Web Storage• localStorage["bar"] = foo;• var foo = localStorage["bar"];

a lot of storage space on the client that persists beyond a page refresh and isn’t transmitted to the server

Page 11: Html5 Introduction

Geolocation• navigator.geolocation.getCurrentPosition(sho

wPosition);• function showPosition(position)

{// position.coords.latitude// position.coords.longitude; }

Page 12: Html5 Introduction

HTML4• Your old markup works still…

Page 13: Html5 Introduction

<CANVAS> API• “a resolution-dependent bitmap canvas that

can be used for rendering graphs, games graphics, or other visual images on the fly.”

Page 14: Html5 Introduction

WEB WORKER• No more long-running scripts which will freeze your browser. Run

your scripts in background.

w=new Worker(“workerfile.js");w.onmessage = function (event) {

document.getElementById("result").innerHTML=event.data;};function stopWorker(){

w.terminate();}

Page 15: Html5 Introduction

Offline web applications• connect to the Internet• load a web page• disconnect from the Internet• work!

Page 16: Html5 Introduction

More input types<input type="search"><input type="number"><input type="range"><input type="color"><input type="tel"><input type="url">

<input type="date"><input type="month"><input type="week"><input type="time"><input type="datetime"><input type="datetime-local"><input type="email">

Page 17: Html5 Introduction

Server-Sent Eventsvar source=new EventSource(“test.aspx");source.onmessage=function(event){

alert(event.data);};

Page 18: Html5 Introduction

Drag-Drop• <img draggable="true">

Page 19: Html5 Introduction

SVG• <svg xmlns="http://www.w3.org/2000/svg"

version="1.1" height="190"><polygon points="100,10 40,180 190,60 10,60 160,180"style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;">< /svg>

Page 20: Html5 Introduction

Go MobileTechnology targeting not just PC, mobile

devices too…

Page 21: Html5 Introduction

Windows 8 Store Apps• Windows Application Development can be

done in HTML5… so HTML is no more just for web…

Page 22: Html5 Introduction

More…• WebSQL• MathML enhancements• WebSocket• MicroData

Page 23: Html5 Introduction

Browser compatibility

Most browsers supports HTML5. If not, they will support soon because they know they will die if not

Page 24: Html5 Introduction

Don’t Be Left Behind!• Start learning, if you have not started yet