angle attribute | angle property
Gets or sets a value that indicates an angle unit.
![]() ![]() |
Syntax
| HTML |
|---|
<element angle="p" ... > |
| JavaScript |
|---|
p = object.angle |
Property values
Type: Floating-point
One of the values in the Property Values section.
Standards information
Remarks
For angle values in properties and their corresponding presentation attributes, the angle unit identifier is optional. If you do not the identifier, the angle value is treated as if it is in degrees. If you provide the identifier, the angle unit identifier must be in lowercase.
When you use angles in an SVG attribute, the angle property is defined as deg for degrees, grad for gradians, or rad for radians.
In the SVG DOM, angle values are represented by using SVGAngle or SVGAnimatedAngle objects.
See also
Show:

