5. • HTML: Started with the Internet: Early 90s
• HTML4: W3C Recommendation in 1997
• HTML5
– Started: 2003
– Working Draft: 2011
6. Why HTML4 is not perfect ?
• Introduced very long ago
• No option available for rich media
• No animation available
• Not made kept in different screen sizes
7. Responsive
• Gets the shape of your device’s screen
• For desktop, laptop, mobile, tab, ANYTHING
• Percentage based rather than pixels
• Simply it’s like water: gets the shape of the
thing it’s in
8. What’s new ?
• Less Header Codes
• More Semantic HTML tags
• Media Tags
• Geolocation
• Canvas
• Input Types
• Form Validation
• Local Storage
11. Semantic Tags
• <article> Defines an article
• <aside> Defines content aside from the page
content
• <figcaption> Defines a caption for a <figure>
element
• <time> Defines a date/time
12. Media Tags
• Embed media files directly
• No flash player needed for videos
• Can put multiple sources for same media
13. New Media Tags
<audio>
• Defines sound content
• <video>
• Defines a video or movie
• <source>
• Defines multiple media resources for <video> and <audio>
• <embed>
• Defines a container for an external application or
interactive content (a plug-in)
• <track>
• Defines text tracks for <video> and <audio>
16. Geolocation
• Like GPS for the browser
• Browser gathers information about nearby
wireless access points and computer’s IP
address. Then it sends this information to the
default geolocation service provider, Google
Location Services, to get an estimate of
location. That location estimate is then shared
with the requesting website.
18. Input Types
• color
• date
• datetime
• email
• month
• number
• range
• tel
• time
• url
19. New Form Elements
• <datalist>
• Specifies a list of pre-defined options for input
controls
• <keygen> Defines a key-pair generator field
• <output> Defines the result of a calculation
20. SVG
• SVG = Scalable Vector Graphics
• vector-based graphics for the Web
• SVG graphics do NOT lose any quality if they
are zoomed or resized
• Every element can be animated
21. Local Storage
• Known as Web storage
– localStorage - stores data with no expiration date
– sessionStorage - stores data for one session
• Like cookies but can only be read client-side
• Security: webpage can read only data saved by
itself
22. Offline
• application cache: web application is cached,
and accessible without an internet
connection.
• Offline browsing - users can use the
application when they're offline
• Speed - cached resources load faster
• Reduced server load