html5 presentation

21
Submitted By: Vijay Soni 08CE90

Upload: vs4vijay

Post on 22-Jun-2015

536 views

Category:

Education


0 download

TRANSCRIPT

Page 1: HTML5 Presentation

Submitted By:Vijay Soni08CE90

Page 2: HTML5 Presentation

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 3: HTML5 Presentation

HTML is a computer language devised to allow website creation

Firstly mentioned on the Internet by Berners-Lee in late 1991.

HTML stands for Hyper Text Markup Language .• An HTML file is a text file containing small

markup tags .• The markup tags tell the Web browser how to

display the page .• An HTML file must have an htm or html file

extension Example : Simple HTML Page Example Explained

The first tag in your HTML document is <html>.

Page 4: HTML5 Presentation

HTML5 ~= HTML + CSS3 + JavaScript

Written by Joshua Johnson, On 19th October 2009.Filed in HTML, Web Standards.

World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG).

Still a work in progress. However, most modern browsers have some HTML5 support. http://HTML5Test.com

Page 5: HTML5 Presentation

New features should be based on HTML, CSS, DOM, and JavaScript

Reduce the need for external plugins (like Flash)

Better error handling More markup to replace scripting HTML5 should be device independent The development process should be

visible to the public

Page 6: HTML5 Presentation

New Markup Elements <article> Defines external content <aside> Defines some content aside from

the article it is placed in <audio> Defines sound, such as music or

other audio streams <canvas> Defines graphic, such as graphs

or other images <command> Defines a command button,

like a radio button, a checkbox, or a button

Page 7: HTML5 Presentation

<datagrid> Defines a list of selectable data. The datagrid is displayed as a tree-list

<datalist> Defines a list of selectable data. Use this element together with the input element, to make a dropdown list for the input’s value

<details> Defines details of an element, which the user can see, and click to hide

<dialog> Defines a dialog, such as a conversation .

Page 8: HTML5 Presentation

<nav> Defines a section of  navigation links

<q> Defines a short quotation

<time> - Defines a time or a date, or both

<video> - Defines video, such as a movie clip or other video streams

<meter> - Defines the range

Page 9: HTML5 Presentation

API's for multimedia by using video and audio tags Drag and drop API HTML canvas 2D context HTML5 web messaging WebSQL Geolocation WebWorkers Notification WebSockets

Page 10: HTML5 Presentation

New Media Elements◦ <video>

Now embed video in your page without requiring any plugin like Flash or Silverlight.Browser MP4 WebM OGG

IE9 Yes No No

FF4+ No Yes Yes

Chrome6+ Yes Yes Yes

Opera10.6+ No Yes Yes

Page 11: HTML5 Presentation

<video src="movie.mp4“ controls="controls"> </video>

Page 12: HTML5 Presentation

New Media Elements◦ <audio>

Extremely simple and easy way to show an audio player in your page.

Browser MP3 WAV OGG

IE9 Yes No No

FF4+ No Yes Yes

Chrome6+ Yes Yes Yes

Opera10.6+ No Yes Yes

Page 13: HTML5 Presentation

A canvas is a rectangular area, and you control every pixel of it.

<canvas id="myCanvas" width="200" height="100"></canvas>

Uses JS to draw shapes and color.◦ <canvas>

Entire library of JS functions for Canvas Dynamic and interactive graphics Draw images using 2D drawing API

– Lines, curves, shapes, fills, etc.

Page 14: HTML5 Presentation

Two new objects to save data:◦ localStorage - stores data with no time limit◦ sessionStorage - stores data for one session

localStorage ◦ Data stored till cleared programmatically by JS◦ Or browser cache cleared.◦ accessible only from the domain that initially stored the

data.

sessionStorage◦ accessible only from the page that initially stored the

data.

Page 15: HTML5 Presentation

email url number range date pickers (date, month, week, time, datetime) search color

<input type="number"> <input type="range">

Page 16: HTML5 Presentation

HTML4 HTML5No multimedia support without third party

It has inbuilt multimedia element in html5 like audio, video, canvas.

No Threads Support of WebWorkers

Drag and Drop with JavaScript API

Drag and Drop without any JS API Support

It was not available New tags like <header>, <footer>, <article>

No Persistent Storage Persistent Storage with WebStorage API

Page 17: HTML5 Presentation

http://www.apple.com/html5

http://www.youtube.com/html5

GTA Game Clone in HTML5 http://www.webworks.dk/enginetest/

Web-Based Adobe Photoshop Clone in HTML5 http://www.picozu.com/

Page 18: HTML5 Presentation
Page 19: HTML5 Presentation

Conclusion –

Introduced the new elements and APIs included in HTML5.

We also got a taste of the semantic changes to come and the new structure our web pages should take in the future.

Finally, we learned that even though HTML5 isn’t quite ready for the masses, we can still get our grubby developer fingers on it and start experimenting today.

Page 20: HTML5 Presentation

W3Schools.com HTML5Rocks.com HTML5Test.com

And then there is Google!

Page 21: HTML5 Presentation

Vijay [email protected]