Skip to main content

XML namespace

SVG

Scalable Vector Graphics. Required for a standalone .svg file to render as an image.

xmlns="http://www.w3.org/2000/svg"

SVG is real XML, which is why an SVG file can be validated, diffed and searched with XML tooling. A standalone SVG file must declare this namespace on its root element or browsers will treat it as unknown markup and render nothing.

Inline SVG inside HTML is the exception: the HTML parser assigns the namespace implicitly, so hand-written inline SVG often omits the declaration and still works.

URI
http://www.w3.org/2000/svg
Prefix
Usually the default namespace
Elements
svgpathgrectcircledefsusetext

Specification: SVG 2

Get started

Bring order to the XML your team can't afford to ignore.

Create a free account and get a private workspace to search, validate, diff, and monitor your XML feeds, sitemaps, schemas, and vendor integrations.