Skip to main content

HTML Guide

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

The xmlns:v attribute is not valid in HTML5 and should be removed to ensure compliance with W3C standards.

The xmlns:v namespace attribute was historically used for VML (Vector Markup Language), mainly in legacy support for Internet Explorer. Modern HTML, particularly the living standard and HTML5, does not permit namespace declarations using xmlns attributes like xmlns:v. These are only valid in XML-based serializations, such as XHTML. Including xmlns:v in a standard HTML5 document results in validation errors because HTML does not support custom namespaces.

Incorrect HTML:

<!DOCTYPE html>
<html xmlns:v="urn:schemas-microsoft-com:vml" lang="en">
  <head>
    <title>VML Namespace Example</title>
  </head>
  <body>
    <!-- Content -->
  </body>
</html>

Corrected HTML:

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>VML Namespace Removed</title>
  </head>
  <body>
    <!-- Content -->
  </body>
</html>

Remove the xmlns:v attribute entirely to resolve the validator warning and ensure your HTML meets current standards. If you are not using VML, no further changes are necessary. If you require vector graphics, use SVG instead, which is fully supported in HTML5.

Related W3C validator issues