Semantics
• More meaningful elements
• Better semantic tags and attributes
• Semantic structure
• Microdata / Microformats
• ARIA attributes
• New form types
• More simple and cool
Slide 12
Slide 12 text
Doctype
Slide 13
Slide 13 text
Doctype
• Switch the content into standards mode
• Prevent quirks mode
• Case-insensitive
Slide 14
Slide 14 text
Slide 15
Slide 15 text
Slide 16
Slide 16 text
Slide 17
Slide 17 text
Better semantic tags
Slide 18
Slide 18 text
HTML 4
Slide 19
Slide 19 text
HTML5
Slide 20
Slide 20 text
Custom data attribute
Slide 21
Slide 21 text
Custom data attribute
data-*
inside HTML elements
Parse them using JavaScript (getAttribute
method)
* = custom attributes: user, name, phone,
id, chico, meli, etc...
New forms
• Semantic types and attributes
• Mobile compatibility
• Validation engine
• Custom patterns
• More control
Slide 32
Slide 32 text
Slide 33
Slide 33 text
Slide 34
Slide 34 text
Slide 35
Slide 35 text
Offline & storage
Slide 36
Slide 36 text
Web Storage
• Local storage / Session storage
• IndexedDB
• Application Cache (offline apps)
Slide 37
Slide 37 text
Local Storage
• JavaScript API
• Cliente-side database
• Key-value notation (JSON)
• Stored in users browsers
• 5 MB (per domain)
• the data persists (after the browser is
shutdown or the session is closed)
Slide 38
Slide 38 text
Fruits
Oranges
Pineapples
...
Slide 39
Slide 39 text
Session Storage
=
Local Storage
Slide 40
Slide 40 text
limited to the time span where the current
window is open
once the window is shut will be invalid
Session Storage
=
Local Storage
Slide 41
Slide 41 text
IndexDB
Slide 42
Slide 42 text
IndexDB
• Web SQL database must die!
• Object Store
• http://www.html5rocks.com/en/
tutorials/indexeddb/todo/
Slide 43
Slide 43 text
AppCache
Slide 44
Slide 44 text
AppCache
• Offline First
• Chache manifest (*.appcache => file)
• Load from local cache (HTML, CSS, JS
and images)
• mimetype: text/cache-manifest
• 5MB (chrome = unlimitedStorage)
• window.applicationCache
Device Access
• Geolocation API
• Camera / Microphone
• Local Data (contacts and events)
• Device Orientation
• Device Motion
• Vibration
• Notification
Slide 48
Slide 48 text
Device Access
• Geolocation API
• Camera / Microphone
• Local Data (contacts and events)
• Device Orientation
• Device Motion
• Vibration
• Notification
Slide 49
Slide 49 text
Connectivity
Slide 50
Slide 50 text
Connectivity
• Web Sockets
• Server-sent events
• Real time
Slide 51
Slide 51 text
Web Sockets
• JavaScript API
• Real time connections
• Bi-directional communications
Slide 52
Slide 52 text
Who is using Web
Sockets?
• Facebook (chat, notifications, comments)
• Gmail
• Twitter
Slide 53
Slide 53 text
Multimedia
Slide 54
Slide 54 text
Multimedia
•Video
•Audio
Slide 55
Slide 55 text
Who is using
Multimedia?
• Youtube
• Vimeo
• GrooveShark