Skip to main content

HTML Guide

Attribute “xmlns:dt” not allowed here.

The xmlns:dt attribute is not permitted on standard HTML elements according to the HTML specification.

HTML5 does not use XML namespaces like xmlns:dt, which are only valid in certain XML vocabularies such as XHTML or when embedding MathML or SVG. In typical HTML, attributes with xmlns or any custom XML namespace prefixes are invalid and cause validation errors.

To fix this issue, simply remove the xmlns:dt attribute from your HTML tags.
If you are using a data attribute or a custom attribute, you can use data-* attributes instead, which are allowed in HTML5.

Incorrect usage with xmlns:dt:

<div xmlns:dt="urn:schemas-microsoft-com:datatypes">
  Content here
</div>

Correct usage—attribute removed:

<div>
  Content here
</div>

If you need to store custom data, use data-* attributes:

<div data-dt="urn:schemas-microsoft-com:datatypes">
  Content here
</div>

Avoid using XML namespaces in HTML5 documents to ensure your code is standards-compliant.

Related W3C validator issues