Without internet connection, how xmlns attribute can work and understand by browser?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 14:20:55

The XML namespace is just there to identify elements based on a namespace, which happens to be in a URI format. See the XML Namespaces spec. In this case, http://www.w3.org/1999/xhtml is the namespace for XHTML; an XML processor will be able to use this information to identify which elements are in the XHTML namespace (identified by that URL).

The browser isn't going to attempt to request the URL that's listed in the xmlns attribute. Even if it does, it won't receive anything useful anyway; visit http://www.w3.org/1999/xhtml in your browser and see for yourself.

So there's nothing to worry about, even if you're working on a development machine with no Internet connection. You'll still be able to write valid XHTML.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!