Global Attributes
draggable="true"
Makes an HTML element eligible for native drag operations. For custom content, provide a dragstart handler to set transfer data and an accessible alternative to dragging. Global enumerated attribute; omission or invalid value uses automatic behavior, so images and links may be draggable by default.
Formal Syntax & Structure
html syntaxhtml
draggable="true"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| draggable | keyword | Makes an HTML element eligible for native drag operations. For custom content, provide a dragstart handler to set transfer data and an accessible alternative to dragging. |
Working Example
Example Snippethtml
<p draggable="true">Drag this text</p>