内置 ASP.net 4.0 Webform 控件可以输出 HTML5 吗?
我们正在努力做好准备并支持 HTML5。
我相信asp.net 4.0中的内置Web控件输出XHTML。
据我了解,内置控件尚未输出 HTML5,但是它们是否可以输出 HTML4?
我并不是特别想输出 HTML / XHTML 的混合匹配,因为虽然我确信大多数浏览器都会处理它,但这似乎是一种会带来不好的意外的方法。
据我了解,浏览器对 XHTML5 的支持不是很好(尽管我仍在研究这一点)。
这个想法是,周围的 HTML 可以使用 HTML5,而控件暂时只使用 HTML4,直到 ASP.NET 赶上来?
We're looking to gear up and support HTML5.
I believe that the built-in web controls in asp.net 4.0 output XHTML.
From what I understand the built-in controls do not yet ouput HTML5, however is it possible from them to output HTML4?
I don't particulary want to output a mixmatch of HTML / XHTML as although I'm sure most browsers will just deal with it, it seems like an approach that will have bad surprises.
From what I understand, XHTML5 support isn't great in browsers (though I'm still researching that).
The idea being that the surrounding HTML can make use of HTML5 and the controls just use HTML4 for the moment until asp.net catches up?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
支持 HTML5 输出:
XHTML5 支持很容易使用文档类型、命名空间和一些样式来添加:
HTML5 output is supported:
XHTML5 support is simple to add using a doctype, namespacing and some styles: