HTML: What is `xmlns:fb=“http://www.facebook.com/2008/fbml”`?

后端 未结 2 1751
自闭症患者
自闭症患者 2021-02-02 07:36

What is xmlns:fb=\"http://www.facebook.com/2008/fbml\"?

I\'ve been seeing it in a lot of tags recently. What does it do?

2条回答
  •  攒了一身酷
    2021-02-02 08:27

    While I haven't seen it in use, this is standard XML notation for extending the current XML namespace (in this case XHTML) with another one (in this case FBML). This tells your browser where to find the specification for FBML which in turn tells it how to handle the tags. Technically speaking, the value of the xmlns:* attribute is simply a unique identifier, but often it is a URL which points to a definition in one form or another. In this particular case the URL doesn't point to a definition unfortunately.

    See W3Schools for more information about XML namespaces.

提交回复
热议问题