# x2 attribute | x2 property

Gets or sets the absolute or relative x-coordinate for the second control point.

## Syntax

HTML
`<element x2="p" ... >`
JavaScript
```p = object.x2
```

## Property values

Type: Floating-point

The absolute or relative x-coordinate for the second control point.

## Exceptions

ExceptionCondition
NoModificationAllowedError

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.

## Remarks

The x2 property represents a relative coordinate for lowercase path commands (for example, q and c), and an absolute coordinate for uppercase path commands (for example, Q and C.)