<path>
Describe editable contours using SVG path commands.
A path can carry curves, arcs and multiple subpaths. Its winding rule determines filled regions.
Syntax
Draw two disconnected segments
Each M starts a subpath and each h draws a relative horizontal segment. The first length is 48 and the second is 16. Both lengths count toward the one stroke trim. The move between them does not add length.
<path d="M8 10h48 M72 10h16"/>Complete .nothing source · Sample checks
Usage context
Allowed parents are <shape>.
Inherits from Geometry.
Attributes
d
Value SVG 2 XML path data · Required · Keys Path commands
Absolute or relative commands, with implicit repetition admitted. Continuous key segments require matching expanded commands and coordinate modes. For arc flags, any nonzero interpolated value is true.
fill-rule
Value nonzero, evenodd · If omitted nonzero · Keys Held
Winding rule for the path interior. The rule also applies when this path supplies a filled mask or boolean region.
Children
| Elements | Cardinality | Declared by | Role and source order |
|---|---|---|---|
<animate> | Zero or more | Animation | A track targets one keyable property on this owner. For equal first-key times, the later track in document order wins. Evaluating animation tracks |