html5
TRANSCRIPT
Shaify Mehta
http://www.shaify.com
HTML5
Everything that makes the
web sing.
Agenda
Agenda
• Introduction to HTML5.
• New Elements .
• New Features.
• Browser Supports.
• Tutorials.
• Live demos.
Who am I?
Who Am I ?
Who am I?
Who am I?
Who Am I ?
HTML5* Web Development to the next level
*Including other next generation technologies of the Web Development stack
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
HTML5
Who Am I ?
HTML5 ~= HTML + CSS + JS
HTML5 Continued….
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
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>
Canvas Element Continued….
Canvas
Element
Audio & Video
Audio
& Video
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>
Attributes : video
Audio
& Video
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 :
New Elements
New
Elements
New Input Types
New Input
Types
• Url
• Number
• Range
• Date pickers (date, month, week, time, datetime, datetime-local)
• Search
• Color
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" />
Web Storage
Web
Storage
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.
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>
HTML5 Support
HTML5
Support
Web Workers
Web
Workers
Web Workers
Web
Workers