--- title: slug: Web/SVG/Element/path translation_of: Web/SVG/Element/path ---
{{SVGRef}}

Das <path> SVG Element ist das allgemeine Element zum definieren einer Form. Alle Grundformen können mit einem path-Element erzeugt werden.

<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>

{{EmbedLiveSample('Example', 100, 100)}}

Attribute

{{SVGAttr("d")}}
Dieses Attribut definiert die Form des Pfades.
Value type: <string> ; Default value: ''; Animatable: yes
{{SVGAttr("pathLength")}}
Dieses Attribut lässt den Author die Gesammtlänge des Pfades in der Einheit des Nutzers definieren.
Value type: <number> ; Default value: none; Animatable: yes

Globale Attribute

Core Attribute
Most notably: {{SVGAttr('id')}}, {{SVGAttr('tabindex')}}
Style Attribute
{{SVGAttr('class')}}, {{SVGAttr('style')}}
Conditional Processing Attributes
Most notably: {{SVGAttr('requiredExtensions')}}, {{SVGAttr('systemLanguage')}}
Event Attributes
Global event attributes, Graphical event attributes
Presentation Attributes
Most notably: {{SVGAttr('clip-path')}}, {{SVGAttr('clip-rule')}}, {{SVGAttr('color')}}, {{SVGAttr('color-interpolation')}}, {{SVGAttr('color-rendering')}}, {{SVGAttr('cursor')}}, {{SVGAttr('display')}}, {{SVGAttr('fill')}}, {{SVGAttr('fill-opacity')}}, {{SVGAttr('fill-rule')}}, {{SVGAttr('filter')}}, {{SVGAttr('mask')}}, {{SVGAttr('opacity')}}, {{SVGAttr('pointer-events')}}, {{SVGAttr('shape-rendering')}}, {{SVGAttr('stroke')}}, {{SVGAttr('stroke-dasharray')}}, {{SVGAttr('stroke-dashoffset')}}, {{SVGAttr('stroke-linecap')}}, {{SVGAttr('stroke-linejoin')}}, {{SVGAttr('stroke-miterlimit')}}, {{SVGAttr('stroke-opacity')}}, {{SVGAttr('stroke-width')}}, {{SVGAttr("transform")}}, {{SVGAttr('vector-effect')}}, {{SVGAttr('visibility')}}
ARIA Attributes
aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria-required, aria-roledescription, aria-rowcount, aria-rowindex, aria-rowspan, aria-selected, aria-setsize, aria-sort, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role

Usage notes

{{svginfo}}

Specifications

Specification Status Comment
{{SpecName("SVG Paths", "#PathElement", "<path>")}} {{Spec2("SVG Paths")}}  
{{SpecName("SVG2", "paths.html#PathElement", "<path>")}} {{Spec2("SVG2")}}  
{{SpecName("SVG1.1", "paths.html#PathElement", "<path>")}} {{Spec2("SVG1.1")}} Initial definition

Browser compatibility

{{Compat("svg.elements.path")}}

See also