This document provides an overview of hybrid mobile application development using HTML5, CSS and JavaScript. It discusses frameworks like PhoneGap and jQuery Mobile that allow building cross-platform apps for iOS, Android and other mobile platforms from a single codebase. Key points include how these frameworks integrate with native SDKs while exposing native device APIs to web technologies, and examples of building demo hybrid apps targeting iPhone and Android.
3. HISTORY OF HTML
1989 Tim Berners-Lee, HTML Tags CERN
1994 May The First WWW conference Geneva
1994 Sep IETF sets up HTML working group
1995 Nov HTML 2.0 IETF
1997 Jan HTML 3.2 W3C
1997 Dec HTML 4.0 W3C
1999 Dec HTML 4.01 W3C
2000 XHTML 1.0 W3C
2002 XHTML 2.0 W3C
2004 Web Applications 1.0 WHATWG
2007 HTML5 Working Group W3C
2010 Oct HTML5 Last Call Working Draft W3C
10. DOCTYPE
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<!DOCTYPE html>
15. For multimedia content, sounds, music or
<audio>
other audio streams.
For video content, such as a movie clip or
<video>
other video streams.
For media resources for media elements,
<source>
defined inside video or audio elements.
<embed> For embedded content, such as plug-in.
16. FORM
<canvas> For making graphics with a script.
<datalist> A list of options for input values.
<keygen> Generate keys to authenticate users.
For different types of output, such as
<output>
output written by a script.
17. INPUT TYPE
tel week
search time
url datetime-local
email number
datetime range
date color
month
18. DEVICE APIS AND POLICY WORKING GROUP
Calendar Contacts
Address-book
Camera Messaging
and microphone (SMS, MMS, Emails)
System info Device Interfaces
(CPU, Network, etc)
Application Launcher
(KangChan Lee, WonSuk Lee)
● ● ●
19. DEVICE APIS AND POLICY WORKING GROUP
Calendar Contacts
Address-book
Camera Messaging
and microphone (SMS, MMS, Emails)
System info Device Interfaces
(CPU, Network, etc)
Application Launcher
(KangChan Lee, WonSuk Lee)
● ● ●
Device APIs and Policy Working Group Meeting
The DAP WG is planning to have a F2F in Seoul, South Korea
on March 15-18 2011, hosted by ETRI.
20. HTML5
WEB STORAGE
WEB APPLICATION SOFTWARE METHODS AND PROTOCOLS USED FOR STORING DATA IN A WEB BROWSER.
WEB STORAGE SUPPORTS PERSISTENT DATA STORAGE, SIMILAR TO COOKIES, AS WELL AS WINDOW-LOCAL STORAGE.
21. HTML5 WEB STORAGE API
✤ Cookie .
✤ Cookie .
4KB .
HTTP Request .
.
.
.
22. HTML5 WEB STORAGE API
✤ HTML5 Web Storage
.
5MB .
.
Key - Value
LocalStorage, SessionStorage 2 .
24. HTML5 WEB STORAGE API
function isSupportLocalStorage() {
var result = true;
try { localStorage }
catch (e) { result = false; }
return result;
}
function isSupportSessionStorage() {
var result = true;
try { sessionStorage }
catch (e) { result = false; }
return result;
}
25. HTML5 WEB STORAGE API
var sKey = $(“#txtKey”).val();
var sValue = $(“#txtValue”).val();
try {
localStorage.setItem(sKey, sValue);
} catch (e) {
if (e == QUOTA_EXCEEDED_ERR) {
alert(“ .”);
}
}
Key-Value pair
26. HTML5 WEB STORAGE API
var sKey = “userName”;
localStorage.getItem(sKey);
localStorage.removeItem(sKey);
localStorage.clear();
SessionStorage LocalStorage
.
27. HTML5
GEOLOCATION
THE GEOLOCATION API DEFINES A HIGH-LEVEL INTERFACE TO
LOCATION INFORMATION ASSOCIATED ONLY WITH THE DEVICE HOSTING
THE IMPLEMENTATION, SUCH AS LATITUDE AND LONGITUDE
31. HTML5
WEBSOCKET
A TECHNOLOGY PROVIDING FOR BI-DIRECTIONAL,
FULL-DUPLEX COMMUNICATIONS CHANNELS,
OVER A SINGLE TRANSMISSION CONTROL PROTOCOL (TCP) SOCKET