SVG Property Complete Reference

Last Updated : 30 Apr, 2026

SVG stands for Scalable Vector Graphic. It can be used to make graphics and animations like in HTML canvas. It is a type of vector graphic that may be scaled up or down. Properties are used for passing the value to the element, there are lots of properties that can be used in SVG elements.

List of SVG Properties:

SVG Properties

Description

AElement.hrefIt returns an SVGAnimatedLength object corresponding to the attribute of the given A element.
prefixIt returns prefix of the given Attr Element.
namespaceURIIt returns namespaceURI of the given Attribute element.
DOMStringList.lengthIt returns the length of the given DOMStringList element.
ownerElementIt returns ownerElement of the given Attr Element.
TextPathElement.startOffsetIt returns an SVGAnimatedLength object corresponding to the attribute of the given textpath element.
localNameIt returns localName of the given Attr element.
Event.returnValueIt returns a string containing the event's type.
Event.isTrustedThis property is a boolean that is true when the event was generated by a user action.
Event.currentTargetIt identifies the current target for the event, as the event traverses the DOM.
Event.bubblesIt indicates whether the event bubbles up through the DOM or not.
Event.composedIt indicates whether the event will propagate across the shadow DOM boundary into the standard DOM.
Event.defaultPreventedIt indicates whether the event can be canceled.
Element.outerHTMLIt returns innerHTML of the given element.
Document.doctypeIt returns the doctype of the document.
Document.headIt returns an object which contains the information about the head of the document.
Document.bodyIt returns an object which contains the information about the body of the document.
Document.imageIt returns the collection of images in the current HTML document.
Document.timelineIt represents the default timeline of the current document.
Document.scriptsThe SVG Document.scripts property returns the list of script element in the document.
Document.hiddenIt returns the boolean value for the check if the page is hidden or not.
Document.documentURIIt returns the document location as a string.
Document.documentElementIt returns the root element of the document.
LineElement.x2It returns an SVGAnimatedLength object corresponding to the attribute of the given line element.
LineElement.y2It returns an SVGAnimatedLength object corresponding to the attribute of the given line element.
LineElement.x1It returns an SVGAnimatedLength object corresponding to the attribute of the given line element.
LineElement.y1It returns an SVGAnimatedLength object corresponding to the attribute of the given line element.
Element.partIt returns a DOMTokenList which represents the part identifiers for the given element.
Element.idIt returns the id of the given element.
Element.attributesIt returns an object that contains all the attributes of the given element.
Element.classListIt returns the classList of the given element.
Element.classNameIt returns the className of the given Element.
Element.innerHTMLThe SVG Element.innerHTML property returns innerHTML of the given element.
LinearGradientElement.x2It returns an SVGAnimatedLength object corresponding to the attribute of the given LinearGradient element.
LinearGradientElement.y1It returns an SVGAnimatedLength object corresponding to the attribute of the given LinearGradient element.
LinearGradientElement.y2It returns an SVGAnimatedLength object corresponding to the attribute of the given LinearGradient element.
LinearGradientElement.x1It returns an SVGAnimatedLength object corresponding to the attribute of the given LinearGradient element.
EllipseElement.ryIt returns an SVGAnimatedLength object corresponding to the attribute of the given ellipse element.
EllipseElement.rxIt returns an SVGAnimatedLength object corresponding to the attribute of the given ellipse element.
EllipseElement.cyIt returns an SVGAnimatedLength object corresponding to the attribute of the given ellipse element.
EllipseElement.cxIt returns an SVGAnimatedLength object corresponding to the attribute of the given ellipse element.
RectElement.yIt returns an SVGAnimatedLength object corresponding to the attribute of the given rectangle element.
RectElement.xIt returns an SVGAnimatedLength object corresponding to the attribute of the given rectangle element.
RectElement.ryIt returns an SVGAnimatedLength object corresponding to the attribute of the given rectangle element.
RectElement.widthIt returns an SVGAnimatedLength corresponding to the attribute of the given rectangle element.
RectElement.heightIt returns an SVGAnimatedLength with respect to the rect element.
RectElement.rxIt returns an SVGAnimatedLength object corresponding to the attribute of the given rectangle element.
CircleElement.rIt returns an SVGAnimatedLength object corresponding to the attribute of the given line element.
CircleElement.cyIt returns an SVGAnimatedLength object corresponding to the attribute of the given line element.
CircleElement.cxIt returns an SVGAnimatedLength object corresponding to the attribute of the given line element.
stop-opacityIt indicates the alpha value or opacity to be used at the stop point.
ScriptElement.typeIt returns an SVGAnimatedLength object corresponding to the attribute of the given script element.
StrokeIt defines the color of a line, text or outline of an element.
SpecularLighting.specularExponentIt returns the SVGAnimatedNumber object corresponding to the specularExponent component.
SpecularLighting.kernelUnitLengthYIt returns the SVGAnimatedNumber object corresponding to the kernelUnitLengthY component.
UseElement.heightIt returns an SVGAnimatedLength object corresponding to the attribute of the given use element
UseElement.widthIt returns an SVGAnimatedLength object corresponding to the attribute of the given use element.
UseElement.xIt returns an SVGAnimatedLength object corresponding to the attribute of the given use element
UseElement.y