This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
* Some parts of this feature may have varying levels of support.
The <path> SVG element is the generic element to define a shape. All the basic shapes can be created with a path element.
| Categories | Graphics element, Shape element |
|---|---|
| Permitted content | Any number of the following elements, in any order: Animation elements Descriptive elements |
dThis attribute defines the shape of the path. Value type: <string>; Default value: ''; Animatable: yes
pathLengthThis attribute lets authors specify the total length for the path, in user units. Value type: <number>; Default value: none; Animatable: yes
This element implements the SVGPathElement interface.
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<path
d="M 10,30
A 20,20 0,0,1 50,30
A 20,20 0,0,1 90,30
Q 90,60 50,90
Q 10,60 10,30 z" />
</svg>
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2> # PathElement> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
path |
1 | 12 | 1.5 | 8 | 3 | 18 | 4 | 14 | 3 | 1.0 | 3 | 3 |
d |
1 | 12 | 1.5 | 8 | 3 | 18 | 4 | 14 | 3 | 1.0 | 3 | 3 |
fill |
1 | 79 | 1.5 | 15 | 3 | 18 | 4 | 14 | 3 | 1.0 | 4.4 | 3 |
systemLanguage |
1 | 12 | 12 | 8 | 3 | 18 | 14 | 14 | 3 | 1.0 | 3 | 3 |
<circle>, <ellipse>, <line>, <polygon>, <polyline>, <rect>
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/path