`draggable` HTML global attribute
The draggable global attribute is an enumerated attribute that indicates whether the element can be dragged, either with native browser behavior or the HTML Drag and Drop API.
The **`draggable`** [global attribute](/docs/Web/HTML/Reference/Global_attributes) is an [enumerated](/docs/Glossary/Enumerated) attribute that indicates whether the element can be dragged, either with native browser behavior or the [HTML Drag and Drop API](/docs/Web/API/HTML_Drag_and_Drop_API).
The `draggable` attribute may be applied to elements that strictly fall under the [HTML namespace](/docs/Glossary/Namespace), which means that it cannot be applied to [SVGs](/docs/Web/SVG).
For more information about what namespace declarations look like, and what they do, see [Namespace crash course](/docs/Web/SVG/Guides/Namespaces_crash_course).
`draggable` can have the following values:
- `true`: the element can be dragged.
- `false`: the element cannot be dragged.
> [!WARNING]
> This attribute is _[enumerated](/docs/Glossary/Enumerated)_ and not _Boolean_. A value of `true` or `false` is mandatory, and shorthand like `<img draggable>` is forbidden. The correct usage is `<img draggable="true">`.
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](/docs/Web/API/HTML_Drag_and_Drop_API/Drag_operations).
## Specifications
## Browser compatibility
## See also
- All [global attributes](/docs/Web/HTML/Reference/Global_attributes).
Cite this
"`draggable` HTML global attribute". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/draggable JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy