What is the xmlns attribute?
the xmlns attribute specifies the xml namespace for a document. This basically helps to avoid namespace conflicts between different xml documents, if for instance a developer mixes xml documents from different xml applications.
Note: The xmlns attribute is only required on the outermost svg element of SVG documents. It is unnecessary for inner svg elements or inside HTML documents.
What does xmlns='http://www.w3.org/1999/XHTML' mean?
The xmlns attribute specifies the xml namespace for a document. Note: The xmlns attribute is required in XHTML, invalid in HTML 4.01, and optional in HTML5. ... This is because the namespace "xmlns=http://www.w3.org/1999/xhtml" is default, and will be added to the <html> tag even if you do not include it.
OR
The namespace name http://www.w3.org/1999/xhtml is intended for use in various specifications such as: ... HTML 5: A vocabulary and associated APIs for HTML and XHTML. XHTML ™ 1.0: The Extensible HyperText Markup Language. XHTML Modularization. XHTML 1.1.
No comments:
Post a Comment