The svg
element is a container that defines a new coordinate system and viewport. It is used as the outermost element of SVG documents, but it can also be used to embed an SVG fragment inside an SVG or HTML document.
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.