what is the exact usage of xmlns in xml, and html

前端 未结 5 2483
-上瘾入骨i
-上瘾入骨i 2021-02-20 02:42

Does any one know what is the exact usage of xmlns in HTML, XML files?

Edit: Why do we need this namespace? What is its usage?

5条回答
  •  灰色年华
    2021-02-20 03:05

    The xmlns attribute declares an XML Namespace. The Namespaces in XML standard discusses this element in depth.

    Namespaces are used primarily to avoid conflicts between element names when mixing XML languages. If you have a particular application that you have questions about, perhaps you could post an example.

提交回复
热议问题