HTML Global draggable Attribute

❮ Previous Global Attributes Next ❯

Example

<p draggable="true">Drag me!</p>
<p draggable="false">No you can't drag me!</p>

Meaning

The draggable attribute is used to set whether or not an element is draggable.

Possible values

Tip The draggable attributes requires JavaScript usage for real integration with elements.

Note: By default links and images are draggable.




Standard Syntax

<element draggable="true|false|auto">



Browser Support




Status







Attribute Values

Value Description
auto Specifies the uses of the default browser.
false Specifies the element is not draggable.
true Specifies the element is draggable.
❮ Previous Global Attributes Next ❯