Skip to main content

HTML Guide

Attribute with the local name “xmlns:dt” is not serializable as XML 1.0.

Using the xmlns:dt attribute in the <html> tag is invalid in HTML5 and triggers validation errors because custom XML namespaces are not supported in HTML.

HTML5 does not support arbitrary XML namespaces, as used in XHTML or other XML-based vocabularies. The attribute xmlns:dt is specific to XML serialization and not serializable as per XML 1.0 rules when used in HTML5 documents, which no longer use the XML namespace mechanism. The only allowed use of xmlns in HTML is for SVG and MathML in embedded contexts, under specific interoperability rules.

To resolve this, remove the xmlns:dt attribute entirely from your document and use a standard HTML <html> declaration.

Incorrect (causes validation error):

<html xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
</html>

Correct (W3C-compliant HTML5):

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>No XMLNS Namespace</title>
  </head>
  <body>
    <!-- Your content here -->
  </body>
</html>

Remove XML-specific attributes from HTML documents to ensure compatibility and compliance with modern HTML standards.

Related W3C validator issues