SlideShare a Scribd company logo
Mobile Web DevelopmentEstelle Weylhttp://standardista.comhttp://evotech.net/blog@estellevw
Native or Web???2Source: Jonathan Stark
3
With HTML5 & CSS34
http://findmebyip.com/litmus/
CSS2.1
CSS3Unfinished, but well supported
iPhone/Android = WebkitNo Cross browser testing!!!
CSS3Mobile Webkit Supports  all of CSS3Mobile Webkit Supports  HTML5almost^much of^
CSS3 PropertiesCSS3 SelectorsHSLA / RGBAMultiple backgroundsBackground-sizeBorder-radiusBorder-imageText ShadowBox Shadow Opacity10Text-overflow
Gradients
Transforms
Columns
Animations
Transitions
Border-image
Reflections
@font-faceHTML5 APIsLocal StorageSession StorageWebSQL dBOffline ApplicationsGeoLocationpostMessage11Query selector ??
Drag & Drop
<canvas>, <svg>, <audio>, <video>
Web FormsHTML5 <input> Typesdate  /time / datetime  / datetime-local  / month / weekemail url12Tel
Number
Range
searchInput Behavior13Keyboard support ≠ Input Type Support
iPhone v. Android v. desktopInput file type does Not work on iPhone. <a href=“tel:14155551212>Call me</a>mailto: opens mail applicationgoogle maps, iTunes and Youtube links open widgets on iPhoneview source            debugger✔14
Mobile Simulators15
Debugging?Switch user agent to iPhone / OtherUse Web Inspector to debug16
Firebug for Mobile?Settings > Safari > Developer > Debug Console17Android Debug Bridge (ADB)
Beautiful bookmarks<link rel="apple-touch-icon" href="/iphoneicon.png" />apple-touch-icon.png(or apple-touch-icon-precomposed.png)18
Android bookmarks<link rel="apple-touch-icon" href="/iphoneicon.png" />apple-touch-icon.png19
Mobile web app settings<link rel="apple-touch-startup-image" href="/startup.png"><meta name="apple-mobile-web-app-capable" content="yes" />  <meta name="apple-mobile-web-app-status-bar-style" content=“default || black || black-translucent" /> (iPhone only)20
Targeting MobileViewport:<meta name="viewport" content="width=980”/><meta name="viewport" content="width=device-width”/><meta name="viewport"            content="user-scalable=no, width=device-width"/>Prohibit Zoom / Pinch:<meta name="viewport" content="width=device-width,             minimum-scale=1.0, maximum-scale=1.0" /> 21
@media queries min-width
 max-width
 device-width
 min-device-width
 max-device-width
 orientation
 -webkit-min-device-pixel-ratio@media screen and (max-device-width: 480px){        /* small screen CSS here */ } 22
@media screen and (???){ …}Portrait & Landscape    (min-width: 320px) and (max-width: 480px)Portrait & Landscape     (min-device-width: 320px) and (max-device-width: 480px)Portrait & Landscape     (max-device-width: 480px)Landscape only	(min-width: 321px) and (max-width: 480px)Portrait only      (max-width: 320px) 23
iPadPortrait & Landscape    (min-device-width: 768px) and (max-device-width: 1024px)Landscape only	(min-device-width: 481px) and      (max-device-width: 1024px) and       (orientation: landscape)Portrait only      (min-device-width: 481px) and       (max-device-width: 1024px) and       (orientation: portrait)24
25
Hide the Title bar<script>addEventListener("load", function() { 		setTimeout(hideURLbar, 0); }, false);		function hideURLbar(){				    window.scrollTo(0,1);	}}		</script>26
Don’t reinvent the wheel27
Sencha Touch28http://glyphish.com/http://graffletopia.com/stencils
29http://10k.aneventapart.com
30
31
32Gradients

More Related Content

PPTX
CSS3 For WebKit: iPadDevCamp Presentation
PPTX
Open Web Camp: CSS3 Implementable Features
PPTX
CSS3 Implementable Features
KEY
A brief look at CSS3 techniques by Aaron Rodgers, Web Designer @ vzaar.com
PDF
Eye Candy Without Images: Fun With CSS3
KEY
CSS3 Takes on the World
PDF
Web Design Trends 2010 - What Is CSS3 All About?
CSS3 For WebKit: iPadDevCamp Presentation
Open Web Camp: CSS3 Implementable Features
CSS3 Implementable Features
A brief look at CSS3 techniques by Aaron Rodgers, Web Designer @ vzaar.com
Eye Candy Without Images: Fun With CSS3
CSS3 Takes on the World
Web Design Trends 2010 - What Is CSS3 All About?

What's hot (20)

PDF
"Вклад Adobe в Web". Дмитрий Барановский, Adobe
PDF
3 Steps to Make Better & Faster Frontends
PDF
Mobile Web Development
PDF
HTML5: A primer on the web's present and future
PPT
LESS(CSS preprocessor)
PDF
LESS
PDF
LESS CSS Pre-processor
PPTX
PDF
3 ways-to-create-sprites-in-rails
PDF
Fasten RWD Development with Sass
PDF
Breaking Free from Bootstrap: Custom Responsive Grids with Sass Susy
PDF
Adaptive theming using compass susy grid
PDF
Presentation html5 css3 by thibaut
PPT
Learn to love CSS3 | Joomla! Day Deutschland
PDF
Getting rid of images with CSS
PPTX
JS.Chi CSS Animations
PDF
Pemrograman Web 4 - Bootstrap 3
PDF
Webové aplikace v JavaScriptu
PPTX
Bootstrap Framework
PDF
CSS Best Practices - tcworld 2018, Scott DeLoach, ClickStart
"Вклад Adobe в Web". Дмитрий Барановский, Adobe
3 Steps to Make Better & Faster Frontends
Mobile Web Development
HTML5: A primer on the web's present and future
LESS(CSS preprocessor)
LESS
LESS CSS Pre-processor
3 ways-to-create-sprites-in-rails
Fasten RWD Development with Sass
Breaking Free from Bootstrap: Custom Responsive Grids with Sass Susy
Adaptive theming using compass susy grid
Presentation html5 css3 by thibaut
Learn to love CSS3 | Joomla! Day Deutschland
Getting rid of images with CSS
JS.Chi CSS Animations
Pemrograman Web 4 - Bootstrap 3
Webové aplikace v JavaScriptu
Bootstrap Framework
CSS Best Practices - tcworld 2018, Scott DeLoach, ClickStart
Ad

Viewers also liked (7)

PPTX
HTML5 Web Forms
PPTX
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
KEY
Building Mobile Apps with HTML, CSS, and JavaScript
PDF
AWS Summit Berlin 2012 Talk on Web Data Commons
PDF
Information Architecture On A Large Scale
PDF
Mobile App Development
PDF
2013 11 mobile eating the world
HTML5 Web Forms
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
Building Mobile Apps with HTML, CSS, and JavaScript
AWS Summit Berlin 2012 Talk on Web Data Commons
Information Architecture On A Large Scale
Mobile App Development
2013 11 mobile eating the world
Ad

Similar to Web Development for Mobile: GTUG Talk at Google (20)

PDF
JavaOne 2009 - 2d Vector Graphics in the browser with Canvas and SVG
PPT
Basics of html5, data_storage, css3
PPTX
Ie9 dev overview (300) beta
PPTX
HTML5 - A Whirlwind tour
PDF
Responsive Web Design e a Ubiquidade da Web
PDF
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
PPTX
HTML5 and Other Modern Browser Game Tech
ODP
Css3 101
PDF
Responsive design
PDF
The specs behind the sex, mobile-friendly layout beyond the desktop
PPTX
PDF
Una web todos los dispositivos.
PPTX
Hardboiled Web Design
PDF
[convergese] Adaptive Images in Responsive Web Design
PDF
Pinkoi Mobile Web
PDF
Google's HTML5 Work: what's next?
KEY
Douban pulse
PPTX
HTML5 - Future of Web
PPTX
Lect-4-Responsive-Web-06032024-082044am.pptx
KEY
Responsive UX - One size fits all @BigDesign conference #BigD12
JavaOne 2009 - 2d Vector Graphics in the browser with Canvas and SVG
Basics of html5, data_storage, css3
Ie9 dev overview (300) beta
HTML5 - A Whirlwind tour
Responsive Web Design e a Ubiquidade da Web
Familiar HTML5 - 事例とサンプルコードから学ぶ 身近で普通に使わているHTML5
HTML5 and Other Modern Browser Game Tech
Css3 101
Responsive design
The specs behind the sex, mobile-friendly layout beyond the desktop
Una web todos los dispositivos.
Hardboiled Web Design
[convergese] Adaptive Images in Responsive Web Design
Pinkoi Mobile Web
Google's HTML5 Work: what's next?
Douban pulse
HTML5 - Future of Web
Lect-4-Responsive-Web-06032024-082044am.pptx
Responsive UX - One size fits all @BigDesign conference #BigD12

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation theory and applications.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Approach and Philosophy of On baking technology
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPT
Teaching material agriculture food technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Machine learning based COVID-19 study performance prediction
Electronic commerce courselecture one. Pdf
Encapsulation theory and applications.pdf
The AUB Centre for AI in Media Proposal.docx
Approach and Philosophy of On baking technology
Programs and apps: productivity, graphics, security and other tools
20250228 LYD VKU AI Blended-Learning.pptx
Understanding_Digital_Forensics_Presentation.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Teaching material agriculture food technology
Building Integrated photovoltaic BIPV_UPV.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Network Security Unit 5.pdf for BCA BBA.
Encapsulation_ Review paper, used for researhc scholars
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
sap open course for s4hana steps from ECC to s4
Advanced methodologies resolving dimensionality complications for autism neur...
MYSQL Presentation for SQL database connectivity
Chapter 3 Spatial Domain Image Processing.pdf
Machine learning based COVID-19 study performance prediction

Web Development for Mobile: GTUG Talk at Google

Editor's Notes

  • #11: standardista
  • #12: standardista
  • #13: standardista
  • #17: Mozilla/5.0 (Linux; U; Android 2.1; en-us; Nexus One Build/ERD62) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17 Switching user agent only matters if browser sniffingMozilla/5.0 (Linux; U; Android 2.1; en-us; Nexus One Build/ERD62) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17
  • #19: selecting the +, or &apos;add bookmark&apos; from the bottom nav, selecting &quot;Add to Home Screen&quot; from the bookmarks menuOptionally editing the title of the bookmark, andSelecting &quot;Add&quot;.
  • #20: selecting the +, or &apos;add bookmark&apos; from the bottom nav, selecting &quot;Add to Home Screen&quot; from the bookmarks menuOptionally editing the title of the bookmark, andSelecting &quot;Add&quot;.
  • #22: Safari on iPhone OS displays webpages at a scale that works for most web content originally designed for the desktop. If these default settings don’t work for your webpages, it is highly recommended that you change the settings by configuring the viewport. You especially need to configure the viewport if you are designing webpages specifically for iPhone OS. Configuring the viewport is easy—just add one line of HTML to your webpage
  • #23: Safari on iPhone OS displays webpages at a scale that works for most web content originally designed for the desktop. If these default settings don’t work for your webpages, it is highly recommended that you change the settings by configuring the viewport. You especially need to configure the viewport if you are designing webpages specifically for iPhone OS. Configuring the viewport is easy—just add one line of HTML to your webpage
  • #24: Safari on iPhone OS displays webpages at a scale that works for most web content originally designed for the desktop. If these default settings don’t work for your webpages, it is highly recommended that you change the settings by configuring the viewport. You especially need to configure the viewport if you are designing webpages specifically for iPhone OS. Configuring the viewport is easy—just add one line of HTML to your webpage
  • #25: Safari on iPhone OS displays webpages at a scale that works for most web content originally designed for the desktop. If these default settings don’t work for your webpages, it is highly recommended that you change the settings by configuring the viewport. You especially need to configure the viewport if you are designing webpages specifically for iPhone OS. Configuring the viewport is easy—just add one line of HTML to your webpage
  • #26: Safari on iPhone OS displays webpages at a scale that works for most web content originally designed for the desktop. If these default settings don’t work for your webpages, it is highly recommended that you change the settings by configuring the viewport. You especially need to configure the viewport if you are designing webpages specifically for iPhone OS. Configuring the viewport is easy—just add one line of HTML to your webpage
  • #28: Sorry, but no source was attributed
  • #29: Javascript LibrariesEasiest to use is Joe Hewitt’s IUIMore full featured is JQTouchFor full fledged apps, Sencha Touch.
  • #33: GRADIENTS
  • #34: http://developer.apple.com/safari/library/documentation/internetweb/conceptual/safarivisualeffectsprogguide/Gradients/Gradients.html
  • #39: .foo { background-image: url(bg-image.png); -moz-background-size: 100% 100%; /* Gecko 1.9.2 (Firefox 3.6) */ -o-background-size: 100% 100%; /* Opera 9.5 */ -webkit-background-size: 100% 100%; /* Safari 3.0 */             background-size: 100% 100%; /* Gecko 2.0 (Firefox 4.0) and other CSS3-compliant browsers */ -moz-border-image: url(bg-image.png) 0; /* Gecko 1.9.1 (Firefox 3.5) */Background-size:= [ &lt;length&gt; | &lt;percentage&gt; | auto ]{1,2} | cover | contain }