what doctype should I use for a mobile website?

余生颓废 提交于 2019-12-20 11:22:09

问题


I'm creating a mobile version of my website from scratch, but I'm unsure what doctype I should use. There does not seem to be a clear standard is that true?

On many mobile sites I see :

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">

On others I find :

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

Can somebody point me in the right direction for decent mobile web design?

I'd like to support most modern handhelds like iphone and HTC devices

I guess a good resolution to use is 320*480 max!

Thanks for helping me out


回答1:


The XHTML MP 1.2 DTD is the current recommendation, finalized in March 2008.

Source:

http://en.wikipedia.org/wiki/XHTML_Mobile_Profile




回答2:


XHTML Basic 1.1 became a W3C Recommendation in July 2008, superseding XHTML-MP 1.2

Source:

http://en.wikipedia.org/wiki/XHTML_Mobile_Profile



来源:https://stackoverflow.com/questions/2257761/what-doctype-should-i-use-for-a-mobile-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!