It is officially 2009. I am proud to say I was awake to watch the ball drop. Generally I end up in bed long before it is time to ring in the New Year. In preparation for 2009 I have read about 50, what is coming in 2009 prediction posts. Almost all of them had mentions of social media and increased mobile web browsing. Mobile web design seems to be something that most developers are avoiding. I have worked on a couple mobile websites, during this process, I have made some discoveries which I thought I would detail to help out others who may be jumping into mobile web design in 2009.
Mobile Browsers and Screens
The biggest problem with mobile web design is the variation in browsers. If you think the differences between IE6, Firefox, and Safari are extreme you haven’t experienced anything. Mobile phones vary greatly in both size and ability. Common screen sizes range from 128 x 160 to 320 x 480. Other common screen sizes are 176 x 220 and 240 x 320 but often the actual resolution will vary slightly. The browsers have greatly varying abilities. Modern smart phones like iPhone and phones running Google Android have fully functional browsers. (At the time of writing this Flash support is not included) Other models like the Nokia 1100 or the Nokia 1101 have very simple browsers. Unfortunately these Nokia models are the best selling phones of all-time with many units still in use. Thankfully, these users are less likely to be taking advantage of the mobile web.
Mobile Phone Mark-up Options
There are two main ways of writing mark-up for mobile browsers. The first is WML. WML is XML mark-up designed for mobile phones. It has been around for some time and is the best way to go if your audience is likely using older or less featured phones like the Noikia 1100 or Nokia 1101. The other, more common option is XHTML or XHTML-MP. XHTML is a mark-up language much more familiar to most web developers. Most modern phone browsers are capable of using XHTML or XHTML-MP and I have had great success using XHTML. When creating your XHTML it is important to make sure you create valid mark-up as mobile phones are not nearly as forgiving as traditional browsers.
Determining What Information to Include in your Mobile Website
One of the most important factors when designing a mobile website is determining what information to include. Browsing the web on a mobile device can be difficult even for users of advanced devices like the iPhone. Although the iPhone and Android phones have made huge strides in web usability, it is still tedious and time consuming to browse the web using these devices. Users of older phones have even more problems because their devices often lack certain abilities like left and right scrolling which make it impossible to browse most traditional websites. In addition, many phones require you to navigate by tabbing and clicking. This makes it very difficult to navigate through a site with a large number of links or form fields.
While some mobile phone designers try to provide alternate versions of the website CSS for mobile phone browsers I prefer to provide a totally separate website designed specifically for mobile phones. In my experience trying to force a full featured website into a mobile phone browser does not work well. I prefer providing mobile users with a modified version of the primary website that focuses on the primary features mobile visitors are likely to use. These could include features like store locators, product searches, and contact information.
The screenshot examples below illustrate the massive difference between the Target.com website and the Target Mobile websites. Target has minimized their website down to a simple product search for mobile users. Users using more advanced browsers like the iPhone can browse the full website but users on simple phones can easily search for and locate products.
How to Add a Mobile Version of a Website
There are various ways to add a mobile version of a website. You can create a separate domain or subdomain from your primary domain like mobile.yoursite.com and yoursite.mobi which are both common locations mobile websites reside. What I have found is most users on mobile devices still reach the primary domain either through direct typing or search results. Due to this I find it useful to use browser detection to direct the user to the proper website format for their phone. Many developers discourage browser detection because it can be problematic but until a standard for mobile version of websites develops I believe browser detection is a requirement.
There are various methods of browser detection available. Here is a PHP script that can be used to detect mobile browsers: http://www.russellbeattie.com/blog/mobile-browser-detection-in-php. Another example of PHP mobile browser detection can be found here: http://mobiforge.com/developing/story/lightweight-device-detection-php.
On the mobile websites that we have created we usually setup mobile.site.com to redirect to site.mobi and the browser detection on site.com will also redirect mobile users to site.mobi. This technique seems to work well for the majority of visitors.
How to Test Mobile Websites
Testing mobile devices is difficult. Unless you’re interested in purchasing dozens of mobile devices there are limited options for testing your code to see how it will perform on mobile devices. For some devices there are online emulators (http://mtld.mobi/emulator.php) that will allow you to see a depiction of what your website will look like on those devices. These devices can also help you test your browser detection. Unfortunately, there are many mobile devices I have been unable to locate emulators for.
I hope this information will help you jump into mobile web development. This is certainly not an all inclusive guide. These are generalizations and tips based on my experiences in developing mobile websites. If you feel anything is left out or if clarification is needed please leave a comment!



[...] How to Design Websites for Mobile Phones [...]
regarding mobile phone markup options, it’s worth noting that mobile safari on iphone, opera mobile / opera mini on java-capable phones, mobile IE and mozilla fennec are also gaining in popularity and use…and like their desktop-based equivalents they can digest most markup (html4, xhtml, etc) you throw at them.
I have been working on this concept for over a year now. Please feel free to check my current process by clicking on my name; current demos, prototypes and live sites are available upon request. I agree with Ryan, this is imminent, but time-wise I have yet to figure out exactly how long “imminent” is.
Thanks for the excellent post.
please do explain the process of connecting to database in mobiles
good post mate , really helped me to find solution for my wap site.
Very informative and to the point. THANKS!
so what is the standard screen size to be able to brows the website using Iphone? 320 x 480 ?
regards
wonderfull
with best regards
Tomas
Thanks for the tips. Do you have any more tips since this post?
Thanks.
i would recommend handsetdetection.com
What will be the ideal option of creating a mobile website?
1) Create a separate mobile website and redirect
(or)
2) Create separate Stylesheets (CSS) and use accordingly?
[...] Websites designed to work well with various mobile phones would surely be facing greater opportunities. More and more people have found much convenience on phones that allows access to the Internet and for sure, the future will find more ways to explore the use of Internet thru mobile phones. [...]
This is an excellent resource on how to develop a website for mobiles – thanks!
One problem we always find is trying to test what the site will look like in the different mobile browsers and then to try and get an entire emulator installed and working just to test with the browser seems like overkill.
Multi-Browser Viewer is releasing a beta product that will have 4 mobile simulators built in that you can simply launch by clicking an exe. Go check it out, it should be available by 30 April 2010.
i want 2 own my website please how can i own mine?
I am learning to design websites for mobile devices and I want to thank you for your article on this subject. It has helped a lot
many thanks.
Your Information is very helpful, do you know which application can be used for in place of SWF flash files.
How we can create an animated flash presentation for mobile versions?
There is a option called flash lite for mobile version. Please check that..
@Rakesh @Muniraju is correct there is an option version of Flash called Flash Lite, however, it doesn’t work for all devices. You may also want to look into HTML5. It is now supported by quite a few mobile devices and offers a great deal of animation capabilities. I have also seen some conversion software that can convert Flash into mobile friendly presentations but I haven’t seen any of those that provide all of the required functionality.
[...] http://www.stemkoski.com/how-to-design-websites-for-mobile-phones/ [...]
nice wap wap ill mix it with my nature valley bar and stupid hair
[...] read a blog post on designing websites for mobile [...]
[...] http://www.stemkoski.com/how-to-design-websites-for-mobile-phones/ [...]
In normal web designing we have the standard screen resolutions available like 1024*768 or 800*600 or others. and we keep standard image resolution to 72dpi. can some let me know what are the standards for mobile phones.
@web design experts… There is a graphic in the top left of the article that shows standard screen sizes. This article is a bit outdated and there are some new ones which I need to add but that will be a good start.
[...] http://www.stemkoski.com/how-to-design-websites-for-mobile-phones/ [...]
i am a lonley american that has a long nose !!
[...] How to Design Websites for Mobile Phones [...]
[...] http://www.stemkoski.com/how-to-design-websites-for-mobile-phones/ [...]
It’s v.Informative point. THANKS!
[...] next article has a different view. How to Design Websites for Mobile Phones I disagree with it to some degree because I don’t believe people with the older style phones [...]
I thought that you’d like to know that Mr. James Harvey over at alteredpixels.net has stolen this blog post and published it under his name in “open source webmagazine.” http://www.opensourcewebmagazine.com/article/index/article_id/6 . When he was editing it to remove identifying info, he even forgot to take out references to 2009 (he plagiarized in 2010… fail!)
He’s also listing it on his Linkedin profile under his publications http://www.linkedin.com/in/jchharvey
Why don’t you mention using a handheld only css file?
Thanks for this nice information…
I’m looking for ways to design a website suitable for most mobile phones.
[...] separate site for mobile devices. I then did a little research (from my desktop computer) and found this article that supported what he advised and gave some tips on getting started. Bear in mind that this [...]
Thank you big time, I always wanted to create a mobile version of my sites and you have just provided the solution for that. Tested it and it works like magic.
God Bless u
The info was very helpfull
“One of the most important factors when designing a mobile website is determining what information to include”
To me a most valuable comment and the information following should be taken in by many mobile site designers.
All too often mobile sites that attempt to mirror the full site become like a hedge maze to users and need frequent reloads to find information.
Deliver the critical information and refer users to the main site for full details.
Keep the navigation simple and remember people have “fat fingers” and maybe no longer have 20:20 vision.
Great article, look forward to reading more.
Extremely informative, appreciate this so much
[...] on January 1st, 2009, I posted a groundbreaking article on my personal blog discussing how to design websites for mobile phones. This highly technical article still holds the top spot in Google search for the phrase “How to [...]
The article is a couple of years old, but still very relevant for today.
Fortunately there are a lot of services now that make creating mobile websites without having to be a full on programmer, but some of the points made in the article still apply today. For instance, many sites are still designed in a way that make it difficult to navigate and find the information needed fast.
Many people are searching on the go and want to find a restaurant or store ( over half of searches on mobile are for local business) and don’t want a difficult time with a complex site.
Simple, one column with big buttons, bars and tabs to click work well. I hope more business decide to go in this direction and again thanks for the info.
Extremely informative, appreciate this so much
Although only 4 years old, this article is now like a dinosaur, no disrespect, it is well written and advice still holds true. But so much has changed in 5 years, to the point where Mobile is now a critical factor to consider if you are a local biz or your Analytics point to an increase in visitors on Android or OS platforms. Our target do not, so we do not have a dedicated mobile site.