--- title: path slug: Web/SVG/Element/path tags: - Caminho - Elemento - Forma - Path - Referencia - SVG - graficos translation_of: Web/SVG/Element/path ---
O elemento path é um elemento genérico para definir uma forma. Todas as formas básicas poderão ser criadas com elemento de caminho.
{{svginfo}}
<svg width="100%" height="100%" viewBox="0 0 400 400"
xmlns="http://www.w3.org/2000/svg">
<path d="M 100 100 L 300 100 L 200 300 z"
fill="orange" stroke="black" stroke-width="3" />
</svg>
Resultado:
{{EmbedLiveSample("Exemplo",200,215)}}
Este elemento implementa a interace do SVGPathElement.
{{ CompatibilityTable() }}
| Recurso | Chrome | Firefox (Gecko) | IE | Opera | Safari |
|---|---|---|---|---|---|
| Suporte básico | 1.0 | {{ CompatGeckoDesktop('1.8') }} | {{ CompatIE('9.0') }} | {{ CompatOpera('8.0') }} | {{ CompatSafari('3.0.4') }} |
| Recurso | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Suporte básico | {{ CompatAndroid('3.0') }} | {{ CompatGeckoMobile('1.8') }} | {{ CompatNo() }} | {{ CompatVersionUnknown() }} | {{ CompatSafari('3.0.4') }} |
Esta tabela é baseada nestas fontes.