draggable can have the following values:
true: the element can be dragged.
false: the element cannot be dragged.
Warning: This attribute is enumerated and not Boolean. A value of
false is mandatory, and shorthand like
<img draggable> is forbidden. The correct usage is
If this attribute is not set, its default value is
auto, which means drag behavior is the default browser behavior: only text selections, images, and links can be dragged. For other elements, the event
ondragstart must be set for drag and drop to work, as shown in this comprehensive example.
|HTML Standard (HTML)|
BCD tables only load in the browser
- All global attributes.