Part I - Introduction to
HTML5
Introduction to HTML5
Rules for HTML5
Upgrading to HTML5
HTML5 Overview to new features
Browser Support for HTML5
New Elements in HTML5
Introduction to HTML5
Upgrading to HTML5
Just <!DOCTYPE html>
Description
Description
Description
Removed Elements
The following HTML 4.01 elements are removed from
HTML5:
<acronym>
<applet>
<basefont>
<big>
<center>
<dir>
<font>
<frame>
<frameset>
<noframes>
<strike>
<tt>
MP4
WebM
Ogg
Internet
Explorer 9
YES
NO
NO
Firefox 4.0 NO
YES
YES
Google
Chrome 6
YES
YES
YES
Apple
Safari 5
YES
NO
NO
Properties
Events
play()
currentSrc
play
pause()
currentTime
pause
load()
videoWidth
progress
canPlayType videoHeight
error
duration
timeupdate
ended
ended
error
abort
paused
empty
muted
emptied
seeking
waiting
volume
loadedmetada
ta
height
width
MP3
Wav
Ogg
Internet
Explorer 9
YES
NO
NO
Firefox 4.0 NO
YES
YES
Google
Chrome 6
YES
YES
YES
Apple
Safari 5
YES
YES
NO
YES
YES
Opera 10.6 NO
Browsers support:
Note:Drag and drop does not work in Safari 5.1.2.
HTML5Canvas
Browsers support:
HTML5Geolocation
Browsers Support:
Note:Geolocation is much more accurate for devices with
GPS, like iPhone.
Geolocation demo
HTML5Web Storage
Browsers support:
localStorage
Example
localStorage.lastname="Smith";
document.getElementById("result").innerHTML="Last name:
"+localStorage.lastname;
sessionStorage
Example
sessionStorage.lastname="Smith";
document.getElementById("result").innerHTML="Last name:
"+sessionStorage.lastname;
SessionStorage Demo
HSL/A Color
div { color: hsla(0,255,0,0.5) }
BACKGROUNDS
Background-size
div {background-size: 200px 100px}
Background-Image
background: url(body-top.png) top left
no-repeat,
url(body-bottom.png) bottom left norepeat,
url(body-middle.png) left repeat-y;
Borders
border-color
Border-image
Border-radius
Border-radius:10px;
border-top-right-radius:10px;
Box-shadow
Box-shadow: hoffset - voffset - blur
radius color
Box-shadow:10px 10px 10px #333;
TEXT
Text-overflow
Text-shadow
Column-width and Column-gap
@font-face
Transformation
Rotate
Transform: rotate(30deg);
Scale
Transform: Scale(0.5,2.0);
Skews
Transform: skew(-30deg);
Browser Prefixes
Firefox (-moz-box-shadow:)
SAFARI (-webkit -box-shadow:)
OPERA (-o-box-shadow:)
IE (-ms-box-shadow:)
Thank You!
NALLIAPPAN.G
Project Leader Web Application
Development.
Mob: 9787143151
Email: nalliappang@gmail.com