对于移动网站,您更喜欢哪种 DTD:“XHTML Mobile”?或“HTML 5”?

发布于 2024-09-24 00:28:42 字数 140 浏览 0 评论 0原文

对于移动网站,您更喜欢哪种 DTD:“XHTML Mobile”还是“HTML 5”?

是否有类似 W3C mobile OK 验证器的移动 Html 5 验证器?

我们现在是否应该在手机上使用 Html 5,因为 W3C 不推荐它?

Which DTD would you prefer for mobile sites, "XHTML Mobile" or "HTML 5"?

Is there any Mobile Html 5 Validator like W3C mobile OK validator for mobiles?

Should we not use Html 5 for mobile phone now because W3C not recommending it.?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

鱼窥荷 2024-10-01 00:28:42

我正在使用“XHTML Mobile”配置文件。如果您想定位 iPhone 或 Android 以外的手机。它会给你更广泛的覆盖范围。

I am using "XHTML Mobile" profile. If you want to target phones different than iphone or android. It would give you wider coverage.

小矜持 2024-10-01 00:28:42

取决于你需要支持什么设备。如果您仅针对 Webkit 设备,例如 iPhone、Android、最新的 Blackberry 和 PalmOs,那么 HTML5 绝对是最佳选择。然后,您可以利用这些设备支持的所有炫酷网络功能。

但是,如果您还需要支持旧版黑莓手机和其他“功能手机”(如诺基亚、LG 翻盖手机等)的用户,您将需要在服务器上进行一些设备协商并提供不同的文档类型 - 即 XHTML-MP 配置文件 - 您可能还想为这些设备提供 xml 声明并确保您发送到这些设备的任何标记都不会破坏 xml 一致性。

Depends what devices you need to support. If you're only targeting Webkit devices eg iPhone, Android, the newest Blackberry's and PalmOs then HTML5 is definitely the best way to go. You can then take advantage of all the cool web functionality that is supported by those devices.

But if you also need to support users on older Blackberry's and other 'feature phones' like nokia's, LG Flip-phones etc you'll need to do some device negotiation on the server and deliver a different doctype - namely XHTML-MP profile - you may also want to give those devices an xml declaration and make sure any mark-up you send to those devices doesn't break xml conformance.

尤怨 2024-10-01 00:28:42

这绝对是 HTML5,因为它将成为新标准(已经被 google.com、twitter.com 等大公司使用)并增强 Web 浏览器中的功能。

您已经可以在 http://validator.w3.org 上验证 HTML5(实验性 -> 直到 HTML5 规范发布)释放)。

this is definitely HTML5 because it will become the new standard (already used by the big players like google.com, twitter.com, etc.) and enhance what can be done in a web browser.

You can already validate HTML5 on http://validator.w3.org (experimental -> until HTML5 specs are released).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文