Content deleted Content added
Tags: Reverted Mobile edit Mobile web edit |
Undid revision 1019450522 by 2001:16A2:CA4E:8000:DC09:BCD8:4EE0:1997 (talk) |
||
Line 19:
For example, the following declaration maps the "xhtml:" prefix to the XHTML namespace:
<pre><nowiki>xmlns:xhtml="http://www.w3.org/
Any element or attribute whose name starts with the prefix "xhtml:" is considered to be in the XHTML namespace, if it or an ancestor has the above namespace declaration.
Line 25:
It is also possible to declare a default namespace. For example:
<pre><nowiki>xmlns="http://www.w3.org/
In this case, any element without a namespace prefix is considered to be in the XHTML namespace, if it or an ancestor has the above default namespace declaration.
If there is no default namespace declaration in scope, the namespace name has no value.<ref>{{cite web|url=https://www.w3.org/
Attributes are never subject to the default namespace. An attribute without an explicit namespace prefix is considered not to be in any namespace.
|