y1 attribute | y1 property
Gets or sets the absolute or relative y-coordinate for the first control point.
![]() ![]() |
Syntax
| HTML |
|---|
<element y1="p" ... > |
| JavaScript |
|---|
p = object.y1 |
Property values
Type: Floating-point
The absolute or relative y-coordinate for the first control point.
Exceptions
| Exception | Condition |
|---|---|
|
An attempt is made to modify an object that cannot be changed. For versions earlier than Internet Explorer 10, NO_MODIFICATION_ALLOWED_ERR is returned. |
Standards information
- Scalable Vector Graphics (SVG) 1.1, Appendix M
Remarks
The y1 property represents a relative coordinate for lowercase path commands (for example, q and c), and an absolute coordinate for uppercase path commands Q and C.)
See also
- SVGPathSegCurvetoCubicAbs
- SVGPathSegCurvetoCubicRel
- SVGPathSegCurvetoQuadraticAbs
- SVGPathSegCurvetoQuadraticRel
Show:

