Facebook Connect和HTML5,xmlns可用? [英] Facebook Connect and HTML5, xmlns available?
问题描述
Facebook Connect及其社交小部件文档提到您需要在< html> $ c中添加
xmlns
属性$ c>标签在它将被使用的页面。
我明白, xmlns
用于XML Name-spacing,并且之前使用过XHTML。然而,最近有关HTML4 / HTML5的讨论,没有阅读整个规范,是与有效的HTML5兼容的 xmlns
属性。那么HTML4呢?
如果我在文档中看到了一个明显的提及,我很抱歉...指出来? / p>
编辑:
一对夫妻文档参考/引用:
http://developers.facebook.com/news.php?blog=1&story=198
https://开发人员。 facebook.com/docs/guides/web
是xmlns属性
这是一个属性。
兼容有效的HTML5?
排序。这是完全没有意义的,但允许人们可以移植XHTML时懒惰。
请记住,HTML 5是未完成的草稿。这些事情可能会改变。不要急于使用HTML 5,除非它提供了严重的好处。
HTML4如何?
根本没有。
Facebook Connect and their "Social Widgets" documentation mention that you need to add an xmlns
attribute to your <html>
tag on the page where it will be used.
I understand that xmlns
is for XML Name-spacing, and have used such with XHTML before. However, with all the recent talk about HTML4 / HTML5, without having read through the entire spec, is the xmlns
attribute compatible with valid HTML5? What about HTML4?
If I've looked over an obvious mention of this in the docs, I'm sorry... point it out?
EDIT: A couple docs references/cites:
http://developers.facebook.com/news.php?blog=1&story=198
https://developers.facebook.com/docs/guides/web
is the xmlns property
It's an attribute.
compatible with valid HTML5?
Sort of. It is completely meaningless, but allowed so people can be lazy when porting XHTML.
Remember that HTML 5 is an unfinished draft. These things are subject to change. Don't rush into using HTML 5 unless it offers a serious benefit.
What about HTML4?
Not at all.
这篇关于Facebook Connect和HTML5,xmlns可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!