开发者

what doctype should I use for a mobile website?

开发者 https://www.devze.com 2022-12-20 05:56 出处:网络
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?

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 t开发者_如何学运维o support most modern handhelds like iphone and HTC devices

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


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

Source:

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号