It is very difficult to create a website that will work on all mobile phones. For example, the small Midwest mobile phone carrier that I know wrote a custom browser that they need to be the default browser on all the phones they sell. The browser is closed and not available for testing. It supports a fancy subset of html, plus extra markup not in html.
However, there is hope. Creating a site accessible for viewing from most 99.9% of mobile devices is quite simple.
WML is a markup language designed for mobile browsers. Almost every mobile browser supports it. WML is not a very cutting edge, and the industry is moving towards XHTML.
There is an XHTML standard for mobile development. I can say a lot about XHTMP-MP , but I think it works.
What you might want is WURFL . You can write a site in WURFL. Then, when someone accesses your page, the WURLF page will be compiled into the markup language that best matches their phone. To quote wikipedia:
WURFL solves this by allowing the development of content pages using an abstraction of page elements (buttons, links, and text fields for example). At run time, this translates to the appropriate, specific markup type for each device. In addition, the developer can specify other runtime solutions based on device capabilities and capabilities (which are all in WURFL).
http://en.wikipedia.org/wiki/Wurfl
Oreilly has a pretty but dated guide here:
http://www.oreillynet.com/pub/a/wireless/2004/02/06/mobile_browsing.html
source share