html5

24

Upload: shaifymehtadnn

Post on 16-May-2015

408 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Html5
Page 2: Html5

Shaify Mehta

http://www.shaify.com

HTML5

Everything that makes the

web sing.

Page 3: Html5

Agenda

Agenda

• Introduction to HTML5.

• New Elements .

• New Features.

• Browser Supports.

• Tutorials.

• Live demos.

Page 4: Html5

Who am I?

Who Am I ?

Who am I?

Page 5: Html5

Who am I?

Who Am I ?

HTML5* Web Development to the next level

*Including other next generation technologies of the Web Development stack

Page 6: Html5

Rough Timeline Of Web Technologies

Who Am I ?

1991 HTML

1994 HTML 2

1996 CSS 1 + JavaScript

1997 HTML 4

1998 CSS 2

2000 XHTML 1

2002 Tableless Web Design

2005 AJAX

2009 HTML 5

Page 7: Html5

HTML5

Who Am I ?

HTML5 ~= HTML + CSS + JS

Page 8: Html5

HTML5 Continued….

HTML5

Page 9: Html5

New Features

New

Feautures

We intend to develop a service which is a blend of all

above said services.

This is saves the hassles of maintaining different user

accounts for different services.

Our website will be comprising of

1. Photo Sharing

2. Video Sharing

3. Document Sharing

Page 10: Html5

Canvas Element

Canvas

Element

• The HTML5 canvas element uses JavaScript to draw

graphics on a web page.

• A canvas is a rectangular area, and you control every pixel

of it.

<canvas id=“my Canvas” width=“200” height=“100” >

</canvas>

Page 11: Html5

Canvas Element Continued….

Canvas

Element

Page 12: Html5

Audio & Video

Audio

& Video

Page 13: Html5

Audio & Video Continued…..

Audio

& Video

• Today, most audio & videos are played through a plugin

(like flash). However, not all browsers have the same

plugins.

• HTML5 specifies a standard way to include these, with

the audio & video elements.

• <audio src="song.ogg“ controls="controls“ > </audio>

• <video src="movie.ogg“ controls="controls"> </video>

Page 14: Html5

Attributes : video

Audio

& Video

Page 15: Html5

Browser supports

Browser

Supports

•Ogg = Ogg files with Theora video codec and Vorbis audio codec

•MPEG4 = MPEG 4 files with H.264 video codec and AAC audio codec

•WebM = WebM files with VP8 video codec and Vorbis audio codec

Video :

Audio :

Page 16: Html5

New Elements

New

Elements

Page 17: Html5

New Input Types

New Input

Types

• Email

• Url

• Number

• Range

• Date pickers (date, month, week, time, datetime, datetime-local)

• Search

• Color

Page 18: Html5

Elements

Elements

• <input type="email" name="user_email" />

• <input type="url" name="user_url" />

• <input type="number" name="points" min="1" max="10" />

• <input type="range" name="points" min="1“ max="10" />

• <input type="date" name="user_date" />

• <input type="color" name="user_color" />

Page 19: Html5

Web Storage

Web

Storage

Page 20: Html5

Web Storage

Web

Storage

• HTML5 offers two new objects for storing data on the

client:

• LocalStorage - stores data with no time limit

• SessionStorage - stores data for one session

• Earlier, this was done with cookies. Cookies are not

suitable for large amounts of data, because they are passed

on by EVERY request to the server, making it very slow and

in-effective.

• HTML5 uses JavaScript to store and access

the data.

Page 21: Html5

Web Storage Continued….

Web

Storage

LocalStorage :

• <script type="text/javascript">

localStorage.lastname="Smith";

document.write(localStorage.lastname);

</script>

SessionStorage:

• <script type="text/javascript">

sessionStorage.lastname="Smith";

document.write(sessionStorage.lastname);

</script>

Page 22: Html5

HTML5 Support

HTML5

Support

Page 23: Html5

Web Workers

Web

Workers

Page 24: Html5

Web Workers

Web

Workers