HTML Global draggable Attribute

❮ Previous Global Attributes Next ❯


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


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


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 ❯