<path>Baseline Widely available *This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.* Some parts of this feature may have varying levels of support.Learn moreSee full compatibilityReport feedbackThe <path> SVG element is the generic element to define a shape. All the basic shapes can be created with a path element.Examplehtml, body, svg { height: 100%; } html<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> Attributes d This attribute defines the shape of the path. Value type: <string> ; Default value: ''; Animatable: yes pathLength This attribute lets authors specify the total length for the path, in user units. Value type: <number> ; Default value: none; Animatable: yes Usage contextCategoriesGraphics element, Shape elementPermitted contentAny number of the following elements, in any order:Animation elementsDescriptive elementsSpecificationsSpecificationScalable Vector Graphics (SVG) 2 # PathElementBrowser compatibilitydesktopmobileChromeEdgeFirefoxOperaSafariChrome AndroidFirefox for AndroidOpera AndroidSafari on iOSSamsung InternetWebView AndroidWebView on iOSpathChrome – Full supportChrome1Toggle historyEdge – Full supportEdge12Toggle historyFirefox – Full supportFirefox1.5Toggle historyOpera – Full supportOpera8Toggle historySafari – Full supportSafari3Toggle historyChrome Android – Full supportChrome Android18Toggle historyFirefox for Android – Full supportFirefox for Android4Toggle historyOpera Android – Full supportOpera Android14Toggle historySafari on iOS – Full supportSafari on iOS3Toggle historySamsung Internet – Full supportSamsung Internet1.0Toggle historyWebView Android – Full supportWebView Android3Toggle historyWebView on iOS – Full supportWebView on iOS3Toggle historydChrome – Full supportChrome1Toggle historyEdge – Full supportEdge12Toggle historyFirefox – Full supportFirefox1.5Toggle historyOpera – Full supportOpera8Toggle historySafari – Full supportSafari3Toggle historyChrome Android – Full supportChrome Android18Toggle historyFirefox for Android – Full supportFirefox for Android4Toggle historyOpera Android – Full supportOpera Android14Toggle historySafari on iOS – Full supportSafari on iOS3Toggle historySamsung Internet – Full supportSamsung Internet1.0Toggle historyWebView Android – Full supportWebView Android3Toggle historyWebView on iOS – Full supportWebView on iOS3Toggle historyd as CSS property supports path()Chrome – Full supportChrome52Toggle historyEdge – Full supportEdge79Toggle historyFirefox – Full supportFirefox97Toggle historyOpera – Full supportOpera60Toggle historySafari – No supportSafariNoToggle historyChrome Android – Full supportChrome Android52Toggle historyFirefox for Android – Full supportFirefox for Android97Toggle historyOpera Android – Full supportOpera Android51Toggle historySafari on iOS – No supportSafari on iOSNoToggle historySamsung Internet – Full supportSamsung Internet6.0Toggle historyWebView Android – Full supportWebView Android52Toggle historyWebView on iOS – No supportWebView on iOSNoToggle historyfillChrome – Full supportChrome1Toggle historyEdge – Full supportEdge79Toggle historyFirefox – Full supportFirefox1.5Toggle historyOpera – Full supportOpera15Toggle historySafari – Full supportSafari3Toggle historyChrome Android – Full supportChrome Android18Toggle historyFirefox for Android – Full supportFirefox for Android4Toggle historyOpera Android – Full supportOpera Android14Toggle historySafari on iOS – Full supportSafari on iOS3Toggle historySamsung Internet – Full supportSamsung Internet1.0Toggle historyWebView Android – Full supportWebView Android4.4Toggle historyWebView on iOS – Full supportWebView on iOS3Toggle historycontext-fill valueChrome – Full supportChrome124Toggle historyEdge – Full supportEdge124Toggle historyFirefox – Full supportFirefox111Toggle historyOpera – Full supportOpera110Toggle historySafari – No supportSafariNoToggle historyChrome Android – Full supportChrome Android124Toggle historyFirefox for Android – Full supportFirefox for Android111Toggle historyOpera Android – Full supportOpera Android82Toggle historySafari on iOS – No supportSafari on iOSNoToggle historySamsung Internet – Full supportSamsung Internet27.0Toggle historyWebView Android – Full supportWebView Android124Toggle historyWebView on iOS – No supportWebView on iOSNoToggle historysystemLanguageChrome – Full supportChrome1Toggle historyEdge – Full supportEdge12Toggle historyFirefox – Full supportFirefox12Toggle historyOpera – Full supportOpera8Toggle historySafari – Full supportSafari3Toggle historyChrome Android – Full supportChrome Android18Toggle historyFirefox for Android – Full supportFirefox for Android14Toggle historyOpera Android – Full supportOpera Android14Toggle historySafari on iOS – Full supportSafari on iOS3Toggle historySamsung Internet – Full supportSamsung Internet1.0Toggle historyWebView Android – Full supportWebView Android3Toggle historyWebView on iOS – Full supportWebView on iOS3Toggle historySee also SVG basic shapes: <circle>, <ellipse>, <line>, <polygon>, <polyline>, <rect> The MDN SVG "Getting Started" tutorial: Path