The draggableglobal attribute is an enumerated flag that says whether an element can be dragged (native behavior or the HTML Drag and Drop API). Valid values are true and false. If you omit it, the default is auto.
With auto, browsers typically allow dragging text selections, images, and links. Other elements need draggable="true" (and usually a dragstart handler) to participate. Dropping still needs JavaScript on the target.
Baseline · Widely available.
Not deprecated and not experimental. Stable across modern browsers since about July 2015. Applies to HTML elements (not SVG).
Not a boolean attribute.
Write draggable="true" or draggable="false". A bare draggable with no value is invalid — unlike disabled or readonly.
Syntax
HTML Syntax
syntax.html
<element draggable="true | false">
Omitted attribute ≈ auto. In JavaScript: element.draggable = true or false.
dragover must call preventDefault() or drop never fires.
drop moves (or copies) the item into the target.
Edge Cases & Pitfalls
Most bugs come from treating draggable like a boolean or forgetting drop handlers.
syntax
Bare draggable is invalid
Always use "true" or "false". Empty or missing values do not enable dragging the way boolean attributes do.
api
Attribute ≠ full DnD
Without dragover + preventDefault and a drop listener, the item flies back and nothing lands.
svg
HTML namespace only
Do not rely on draggable on SVG elements. Prefer HTML wrappers or other interaction patterns.
a11y
Offer a non-drag path
Pointer drag is hard for keyboard and many assistive tech users. Provide buttons or other controls that do the same job.
touch
Mobile support varies
HTML DnD is historically mouse-oriented. Test touch devices; consider Pointer Events or libraries when touch is required.
Compatibility
Browser Support
draggable is an HTML global attribute in the browser. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
draggable
Supported in modern Chrome, Firefox, Safari, and Edge. Drag-and-drop UX still differs on touch devices and for keyboard users.
96%Global support (approx.)
Google Chrome4+
Full support
Mozilla Firefox2+
Full support
Apple Safari5+
Full support
Microsoft Edge12+
Full support
Opera12+
Full support
Samsung InternetModern
Full support
Internet Explorer9+
Supported
draggableWidely supported
Bottom line: Safe to use on modern sites. Pair with JS drop handlers and accessible alternatives — the attribute alone is only the drag source hint.
Remember
Key Takeaways
Enumerated: use "true" or "false" — not a bare flag.
Default auto: selections, images, and links; other nodes need true.
Drops need JS:dragover + preventDefault, then drop.
A11y: always offer a non-drag way to do the same action.
One line:draggable="true|false" controls the drag source — drop zones still need events.
Frequently Asked Questions
It is a global enumerated attribute that says whether an element can be dragged. Use draggable="true" or draggable="false". If omitted, the default is auto (browser default: text selections, images, and links).
No. It is enumerated. You must write true or false explicitly. A bare draggable with no value is invalid and does not mean true.
No. It only allows the element to start a drag. Drop targets need JavaScript (at least preventDefault on dragover, plus a drop handler).
auto is the default when the attribute is omitted. Images, links, and text selections are draggable; other elements are not unless you set true or handle dragstart.
No. MDN notes it applies to elements in the HTML namespace, not SVG. Use the HTML Drag and Drop API patterns carefully with SVG or other approaches.
Use element.draggable = true or false (boolean property). That maps to the enumerated attribute values.