Global Attributes
HTML draggable attribute
Controls whether an element is draggable through native drag-and-drop. This is not a boolean attribute. JavaScript is typically needed for custom drag data and accessible alternatives. Applicability: global HTML attribute, subject to element-specific restrictions and browser support.
Formal Syntax & Structure
html syntaxhtml
draggable="true"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| draggable | enumerated: true, false | Controls whether an element is draggable through native drag-and-drop. This is not a boolean attribute. JavaScript is typically needed for custom drag data and accessible alternatives. |
Working Example
Example Snippethtml
<p draggable="true">Drag this text</p>Browser Compatibility
Minimum supported versions across modern rendering engines
Chrome
4
Yes
Edge
12
Yes
Firefox
2
Yes
Safari
5
Yes
Opera
12
Yes
Checked desktop BCD snapshot: global draggable attribute. Versions denote the recorded start of support (≤ means at least that early), not a guarantee of all behavior. Unresolved mirror and preview rows omitted. Touch and keyboard interaction require separate review.
HTML Living Standard