SlideShare a Scribd company logo
Brooks Bennett City of Round Rock




Simple Mobile Websites
    Taking your message on the road
What we will cover

•   Go over basic details specific to mobile
    web development, focusing on iPhone and
    Android

•   Play with some source code to see how
    simple this stuff really is

•   Put it all together into one final, fun demo
Mobile in the USA

•   More than 50 million smart-phones in use
    in USA at the end of 2009

•   No signs of slowdown in mobile data
    usage growth

•   Is mobile important? Yes, that is why you
    are here...
Mobile Round Rock
•   High-tech, rapidly growing community

•   Want to be #1 source for City news and
    information

•   Mini-mobile website since 2006

•   Mobile traffic is >4% of our web traffic -
    that is thousands of users per month
Why keep it simple?
•   Limited processors and limited connection
    speeds mean you must present ‘light’
    content

•   People are looking for specific information
    on the road

•   We are government. People want specific
    information from us and want to get on
    with their lives...
Where we focus
•   News

•   Calendar

•   Staff directory

•   Service directory

•   FAQs

•   Social media links and video
Round Rock - On the Go
Viewport


•   The viewport meta tag controls how a
    page is drawn to the screen of your mobile
    device
Viewport


•   If your website design is less than 980px
    wide, then setting the viewport is a really
    good idea so your current website can look
    as good as possible on mobile devices
Viewport properties
•   width (can use width=device-width)

•   height (can use width=device-height)

•   initial-scale (0-10)

•   minimum-scale (0-10)

•   maximum-scale (0-10)

•   user-scalable (0 or 1)
Viewport example


<meta name="viewport"
content="width=device-width;
initial-scale=1.0; maximum-
scale=1.0; user-scalable=0;"/>
Viewport demo
Cascading Stylesheets


•   Modern mobile browsers have great CSS
    support

•   If you can handle your project just using
    stylesheets, your life will be simple
Conditional CSS
             Mobile Devices




<link media="only screen and (max-
device-width: 480px)" href="#"
type="text/css" rel="stylesheet">
Conditional CSS
             Larger Devices



<link media="screen and (min-
device-width: 481px)" href="#"
type="text/css" rel="stylesheet">
Cascading Stylesheets


•   You can always sniff for a specific device
    and then use server-side coding to deliver
    the stylesheet that you want

•   More on this in a few minutes...
Stylesheet tricks
•   You can offer different styles for portrait and
    landscape orientations
@media all and (orientation: portrait) {

     body {

         background-color: #707CA7;

     }

}
Stylesheet tricks


•   iPhone 4 specific stylesheet
@media only screen and (min-resolution: 300dpi){

    // CSS for iPhone 4’s 320dpi screen

}
Home screen icons
•   Both iPhone and Android support the rel
    attributes “apple-touch-icon-precomposed”
    and “apple-touch-icon” of the link tag

•   The precomposed version does not give you
    the glossy overlay effect on iOS
<link rel="apple-touch-icon"
  href="apple-touch-icon-otg.png"/>
Icon sizes
         All devices listed use PNG files for icons


•   Android uses 48px * 48px

•   iPhone uses 57px * 57px

•   iPhone 4 uses 114px * 114px

•   I recommend using 114px * 114px or larger.
    The devices all scale them down fine
Icon demo
Devices to support

•   You thought supporting multiple desktop
    browsers was a mess...

•   PPK of quirksmode has a compatibility list
    @ http://quirksmode.org/m

•   http://detectmobilebrowser.com has some
    good scripts for testing
User-agent detection

•   We serve content for iPhone, iPod,
    Blackberry, Android, Palm Pre, and
    IEMobile

•   Be careful of sniffing for “Mobile Safari”
    because of iPad... We sniff for “iPod” and
    “iPhone”
What not to do (IMHO)

•   Force smartphone users to mobile site

•   Not allow a choice to view full site

•   Pre-load lots of content

•   Flash!
How to test?

•   iPhone Simulator on OS X (or other device
    emulator)

•   Desktop web-browser with user-agent set
    to iPhone or Android (or other device)

•   Track down the hardware and test natively
Putting it all together


•   Proper viewport settings, conditional CSS,
    custom icon, and change content based
    on screen orientation.
Code Cracker
   Hint: 123123
What’s next?

•   Check for geographic position using
    geolocation APIs

•   Augmented reality

•   Continue to keep up with new mobile
    technologies and trends
Brooks Bennett City of Round Rock




Simple Mobile Websites
   No go take your message on the road!

More Related Content

PPT
Designing for Mobile Devices
OxonDigital
 
PDF
Smart phone apps for agriculture
learjk
 
PPTX
Smart phone apps for agriculture
learjk
 
KEY
Tuenti Mobile Development
Tuenti
 
PPTX
Alienate Operating System (AOS)
Sudarsshan11
 
PPTX
iPad Class
Vic Ward
 
PPTX
2013 ntca fall conference - Mobile Apps Presentation
Tom Seymour, PhD
 
PDF
State of the Mobile Browsers
Peter-Paul Koch
 
Designing for Mobile Devices
OxonDigital
 
Smart phone apps for agriculture
learjk
 
Smart phone apps for agriculture
learjk
 
Tuenti Mobile Development
Tuenti
 
Alienate Operating System (AOS)
Sudarsshan11
 
iPad Class
Vic Ward
 
2013 ntca fall conference - Mobile Apps Presentation
Tom Seymour, PhD
 
State of the Mobile Browsers
Peter-Paul Koch
 

What's hot (20)

PPTX
chapter2
Pon Tovave
 
KEY
Designing for mobile devices
Fahd Alhazmi
 
PDF
Tincan - Mobile Elephant
Ben Holliday
 
KEY
Building Mobile Apps with HTML, CSS, and JavaScript
Jonathan Stark
 
PPTX
Mobile Web Best Practices
Woody Pewitt
 
PDF
Nokia N900 Report
Hany Al Hamidi
 
PDF
The mobile browser world
Peter-Paul Koch
 
PPT
Mobile First - WCJ 2012
Gal Brill
 
PDF
Jan Ole Suhr
fndc
 
KEY
Mobile Internet
Michaël Uyttersprot
 
KEY
Native Device vs. Mobile Web Applications
Tim Wright
 
PDF
Best Practices For Delivering Quality Web Experiences In A Mobile, Multi-Brow...
Compuware APM
 
PPTX
Mobile website --- Web is in pocket....
Naga Harish M
 
PDF
Html5 - the new kid on the block
Marian Borca
 
PPT
Levitum - Working With Us
Levitum
 
PDF
Mobile Web High Performance
Maximiliano Firtman
 
PPTX
The Rise Of Tablets: Responsive Web Design is in your future
Rick Wilson
 
PPTX
The rise of tablets how responsive web design is in your future
Internet Merchants Association
 
PDF
Jennifer Wilson Aimia Nokia Developer Day
fndc
 
PPTX
Sql server 2012 mobile business intelligence
Jen Stirrup
 
chapter2
Pon Tovave
 
Designing for mobile devices
Fahd Alhazmi
 
Tincan - Mobile Elephant
Ben Holliday
 
Building Mobile Apps with HTML, CSS, and JavaScript
Jonathan Stark
 
Mobile Web Best Practices
Woody Pewitt
 
Nokia N900 Report
Hany Al Hamidi
 
The mobile browser world
Peter-Paul Koch
 
Mobile First - WCJ 2012
Gal Brill
 
Jan Ole Suhr
fndc
 
Mobile Internet
Michaël Uyttersprot
 
Native Device vs. Mobile Web Applications
Tim Wright
 
Best Practices For Delivering Quality Web Experiences In A Mobile, Multi-Brow...
Compuware APM
 
Mobile website --- Web is in pocket....
Naga Harish M
 
Html5 - the new kid on the block
Marian Borca
 
Levitum - Working With Us
Levitum
 
Mobile Web High Performance
Maximiliano Firtman
 
The Rise Of Tablets: Responsive Web Design is in your future
Rick Wilson
 
The rise of tablets how responsive web design is in your future
Internet Merchants Association
 
Jennifer Wilson Aimia Nokia Developer Day
fndc
 
Sql server 2012 mobile business intelligence
Jen Stirrup
 
Ad

Viewers also liked (7)

PDF
Arts and Culture Strategic Master Plan - Community Coffee Presentation
cityofroundrock
 
PDF
America's Health Plans Response to President Obama
Pastor Harvey Burnett
 
PPT
Social Media For Municipalities
cityofroundrock
 
PDF
Tech Trends
cityofroundrock
 
PPT
YouTube for Developers
cityofroundrock
 
PPTX
Social Media: When Will Case Law Catch Up to the
cityofroundrock
 
PDF
Women In The Ministry Summary
Pastor Harvey Burnett
 
Arts and Culture Strategic Master Plan - Community Coffee Presentation
cityofroundrock
 
America's Health Plans Response to President Obama
Pastor Harvey Burnett
 
Social Media For Municipalities
cityofroundrock
 
Tech Trends
cityofroundrock
 
YouTube for Developers
cityofroundrock
 
Social Media: When Will Case Law Catch Up to the
cityofroundrock
 
Women In The Ministry Summary
Pastor Harvey Burnett
 
Ad

Similar to Simple mobile Websites (20)

PDF
Responsive websites. Toolbox
Wojtek Zając
 
PDF
Creating mobile apps without native code
Joakim Kemeny
 
PPT
The Mobile Development Landscape
Ambert Ho
 
PDF
Responsive Websites
Joe Seifi
 
PPTX
How To Be an HTML5 Mobile Cloud Champion
Chris Love
 
PDF
Responsive design: techniques and tricks to prepare your websites for the mul...
Andreas Bovens
 
PDF
Pinkoi Mobile Web
mikeleeme
 
KEY
Web app
조 용구
 
PDF
Responsive Web Design & the state of the Web
Yiannis Konstantakopoulos
 
KEY
Optimizing content for the "mobile web"
Chris Mills
 
PPTX
Mobile for web developers
Jon Arne Sæterås
 
PDF
Mobile for PHP developers
Ivo Jansch
 
KEY
CSS for Mobile
Daniel Ryan
 
PDF
Responsive Web Site Design
Jussi Pohjolainen
 
PDF
Developing for Mobile Web
Barbara Bermes
 
PPTX
Make mobile web apps rock
Chris Love
 
KEY
Web app
조 용구
 
PDF
Mobile App Development
Chris Morrell
 
PPTX
Html5 on Mobile(For Developer)
Adam Lu
 
PPTX
Kentico Technical Learning - Responsive Design with Kentico CMS 7
Thomas Robbins
 
Responsive websites. Toolbox
Wojtek Zając
 
Creating mobile apps without native code
Joakim Kemeny
 
The Mobile Development Landscape
Ambert Ho
 
Responsive Websites
Joe Seifi
 
How To Be an HTML5 Mobile Cloud Champion
Chris Love
 
Responsive design: techniques and tricks to prepare your websites for the mul...
Andreas Bovens
 
Pinkoi Mobile Web
mikeleeme
 
Web app
조 용구
 
Responsive Web Design & the state of the Web
Yiannis Konstantakopoulos
 
Optimizing content for the "mobile web"
Chris Mills
 
Mobile for web developers
Jon Arne Sæterås
 
Mobile for PHP developers
Ivo Jansch
 
CSS for Mobile
Daniel Ryan
 
Responsive Web Site Design
Jussi Pohjolainen
 
Developing for Mobile Web
Barbara Bermes
 
Make mobile web apps rock
Chris Love
 
Web app
조 용구
 
Mobile App Development
Chris Morrell
 
Html5 on Mobile(For Developer)
Adam Lu
 
Kentico Technical Learning - Responsive Design with Kentico CMS 7
Thomas Robbins
 

Recently uploaded (20)

PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PPTX
Coupa-Overview _Assumptions presentation
annapureddyn
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PPTX
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PDF
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
PDF
Software Development Company | KodekX
KodekX
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Coupa-Overview _Assumptions presentation
annapureddyn
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
Software Development Company | KodekX
KodekX
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 

Simple mobile Websites

  • 1. Brooks Bennett City of Round Rock Simple Mobile Websites Taking your message on the road
  • 2. What we will cover • Go over basic details specific to mobile web development, focusing on iPhone and Android • Play with some source code to see how simple this stuff really is • Put it all together into one final, fun demo
  • 3. Mobile in the USA • More than 50 million smart-phones in use in USA at the end of 2009 • No signs of slowdown in mobile data usage growth • Is mobile important? Yes, that is why you are here...
  • 4. Mobile Round Rock • High-tech, rapidly growing community • Want to be #1 source for City news and information • Mini-mobile website since 2006 • Mobile traffic is >4% of our web traffic - that is thousands of users per month
  • 5. Why keep it simple? • Limited processors and limited connection speeds mean you must present ‘light’ content • People are looking for specific information on the road • We are government. People want specific information from us and want to get on with their lives...
  • 6. Where we focus • News • Calendar • Staff directory • Service directory • FAQs • Social media links and video
  • 7. Round Rock - On the Go
  • 8. Viewport • The viewport meta tag controls how a page is drawn to the screen of your mobile device
  • 9. Viewport • If your website design is less than 980px wide, then setting the viewport is a really good idea so your current website can look as good as possible on mobile devices
  • 10. Viewport properties • width (can use width=device-width) • height (can use width=device-height) • initial-scale (0-10) • minimum-scale (0-10) • maximum-scale (0-10) • user-scalable (0 or 1)
  • 13. Cascading Stylesheets • Modern mobile browsers have great CSS support • If you can handle your project just using stylesheets, your life will be simple
  • 14. Conditional CSS Mobile Devices <link media="only screen and (max- device-width: 480px)" href="#" type="text/css" rel="stylesheet">
  • 15. Conditional CSS Larger Devices <link media="screen and (min- device-width: 481px)" href="#" type="text/css" rel="stylesheet">
  • 16. Cascading Stylesheets • You can always sniff for a specific device and then use server-side coding to deliver the stylesheet that you want • More on this in a few minutes...
  • 17. Stylesheet tricks • You can offer different styles for portrait and landscape orientations @media all and (orientation: portrait) { body { background-color: #707CA7; } }
  • 18. Stylesheet tricks • iPhone 4 specific stylesheet @media only screen and (min-resolution: 300dpi){ // CSS for iPhone 4’s 320dpi screen }
  • 19. Home screen icons • Both iPhone and Android support the rel attributes “apple-touch-icon-precomposed” and “apple-touch-icon” of the link tag • The precomposed version does not give you the glossy overlay effect on iOS <link rel="apple-touch-icon" href="apple-touch-icon-otg.png"/>
  • 20. Icon sizes All devices listed use PNG files for icons • Android uses 48px * 48px • iPhone uses 57px * 57px • iPhone 4 uses 114px * 114px • I recommend using 114px * 114px or larger. The devices all scale them down fine
  • 22. Devices to support • You thought supporting multiple desktop browsers was a mess... • PPK of quirksmode has a compatibility list @ http://quirksmode.org/m • http://detectmobilebrowser.com has some good scripts for testing
  • 23. User-agent detection • We serve content for iPhone, iPod, Blackberry, Android, Palm Pre, and IEMobile • Be careful of sniffing for “Mobile Safari” because of iPad... We sniff for “iPod” and “iPhone”
  • 24. What not to do (IMHO) • Force smartphone users to mobile site • Not allow a choice to view full site • Pre-load lots of content • Flash!
  • 25. How to test? • iPhone Simulator on OS X (or other device emulator) • Desktop web-browser with user-agent set to iPhone or Android (or other device) • Track down the hardware and test natively
  • 26. Putting it all together • Proper viewport settings, conditional CSS, custom icon, and change content based on screen orientation.
  • 27. Code Cracker Hint: 123123
  • 28. What’s next? • Check for geographic position using geolocation APIs • Augmented reality • Continue to keep up with new mobile technologies and trends
  • 29. Brooks Bennett City of Round Rock Simple Mobile Websites No go take your message on the road!