W3C Mobile Web Initiative

Mobile Web Best Practices
Lessons Learned Since 2008

MyMobileBristol
27 October 2010

http://www.w3.org/2010/Talks/phila-mmb/

Phil Archer <phila@w3.org>

This project is funded by the European Union through the Seventh Framework Programme (FP7/2010-2012) under grant agreement n°257800 - Mobile Web Application (MobiWebApp) MobiWebApp project logo

You may Have Seen This?

screen grab of MWBP doc http://www.w3.org/TR/mobile-bp

You may Have Seen This?

screen grab of MWBP doc http://www.w3.org/TR/mobile-bp

Proposed Recommendation November 2006

screen grab of MWBP doc at Proposed Rec http://www.w3.org/TR/mobile-bp

Candidate Recommendation June 2006

screen grab of MWBP doc at Candidate Rec http://www.w3.org/TR/mobile-bp

Since June 2006…

Has anything relevant to the Mobile Web happened since June 2006 ?

Since June 2006…

Has anything relevant to the Mobile Web happened since June 2006 ?

Since June 2006…

Has anything relevant to the Mobile Web happened since June 2006 ?

Since June 2006…

Has anything relevant to the Mobile Web happened since June 2006 ?

Since June 2006…

Has anything relevant to the Mobile Web happened since June 2006 ?

January 2007

Original iPhone

Source: http://en.wikipedia.org/wiki/File:IPhone_keyboard_unblured.jpg

Usage stats

screenshot of Admob research into use of smartphones vs. numbers of handsets

Source: http://metrics.admob.com/wp-content/uploads/2010/06/May-2010-AdMob-Mobile-Metrics-Highlights.pdf

Conclusion

mobile Web = iPhone?

Conclusion

mobile Web ≠ iPhone!

Conclusion

mobile Web ≠ iPhone!

Using the AdMob statistics iPhone accounts for:

How it all began

selection of snapshots of people present at the Mobile Web best Practices kick off meeting, Vodafone, June 2005

Things we assumed in June 2005

Right in 2006, right now

Basic design structure for mobile

Right in 2006, right now

Basic design structure for mobile

Right in 2006, right now

Basic design structure for mobile

Right in 2006, right now

Right in 2006, but a little out of date now

Right in 2006, but a little out of date now

Right in 2006, but a little out of date now

CSS media types cannot be used as intended. Instead use a combination of media types and media queries, currently something like:

<link rel="stylesheet" href="/2008/site/css/minimum" type="text/css" media="handheld, all" />
<style type="text/css" media="print, screen and (min-width: 481px)">
  /*<![CDATA[*/
  @import url("/2008/site/css/advanced");
  /*]]>*/
</style>
<link href="/2008/site/css/minimum" rel="stylesheet" type="text/css" media="handheld, only screen and (max-device-width: 480px)" />
<meta name="viewport" content="width=device-width" />

This is the code used on the W3C homepage. For more on this topic see Bulletproof Mobile Device Detection and Style Sheets without User Agent Detection or Server-Side Scripting from Bushido Designs.

Best Practice in Practice?

My Mobile Bristol beta

Best Practice in Practice?

My Mobile Bristol, Today page

Best Practice in Practice?

My Mobile Bristol, as seen on a Nokia N95

Best Practice in Practice?

My Mobile Bristol Today page, as seen on a Nokia N95
My Mobile Bristol seen on an iPhone

My iPhone Bristol?

One Web & Thematic Consistency

http://www.bristol.ac.ukhttp://m.bristol.ac.uk
Bristol.ac.uk home pageMy Mobile Bristol beta

One Web & Thematic Consistency

If you're offering broadly similar content to mobile and desktop users: use one URI. If you use redirection:

If the content is different, use two different URIs with no redirection.

"Desktop users visit www.example.com, mobile users visit m.example.com" = #FAIL

MWBP 4 years on: Summary

New from Mobile Web Best Practices

Screenshot of Mobile Web Application Best Practices PR

http://www.w3.org/TR/mwabp/

Example MW Application Best Practices

Expect a new online training course based on this in 2011.

See the document itself for details and the flip cards for a handy, graphical guide.

front card from MWABP flip cards

Other Working Groups

Other Working Groups

HTML5?

Screenshot of HTML5 working draft, 19/10/10 Screenshot of HTML5 working draft, 24/6/10

http://www.w3.org/TR/2010/WD-html5-20101019/

W3C Mobile Web Initiative

http://www.w3.org/2010/Talks/phila-mmb/

Phil Archer <phila@w3.org>

This project is funded by the European Union through the Seventh Framework Programme (FP7/2010-2012) under grant agreement n°257800 - Mobile Web Application (MobiWebApp) MobiWebApp project logo