• HTML
  • Your first website: Creating the content
  • Headings and paragraphs in HTML
  • Advanced text features
  • HTML images
  • HTML table accessibility
  • Content categories
  • Date and time formats used in HTML
  • Viewport meta tag
  • <abbr>
  • <acronym> Deprecated
  • <aside>
  • <bdi>
  • <big> Deprecated
  • <button>
  • <center> Deprecated
  • <colgroup>
  • <del>
  • <dir> Deprecated
  • <em>
  • <fencedframe> Experimental
  • <font> Deprecated
  • <frame> Deprecated
  • <frameset> Deprecated
  • <hgroup>
  • <iframe>
  • <kbd>
  • <link>
  • <marquee> Deprecated
  • <nav>
  • <nobr> Deprecated
  • <noembed> Deprecated
  • <noframes> Deprecated
  • <optgroup>
  • <param> Deprecated
  • <plaintext> Deprecated
  • <rb> Deprecated
  • <rtc> Deprecated
  • <script>
  • <slot>
  • <strike> Deprecated
  • <summary>
  • <td>
  • <th>
  • <tr>
  • <tt> Deprecated
  • <video>
  • <xmp> Deprecated
  • Global attributes
    1. anchor Experimental Non-standard
    2. class
    3. draggable
    4. id
    5. itemid
    6. itemtype
    7. popover
    8. tabindex
    9. virtualkeyboardpolicy Experimental
    10. capture
    11. elementtiming
    12. min
    13. placeholder
    14. size
    15. <input type="color">
    16. <input type="file">
    17. <input type="number">
    18. <input type="reset">
    19. <input type="text">
    20. global attribute is an HTML Drag and Drop API.

      The draggable attribute may be applied to elements that strictly fall under the SVGs. For more information about what namespace declarations look like, and what they do, see Namespace 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 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 comprehensive example.

  • Specifications

    Specification
    HTML
    # the-draggable-attribute

    Browser compatibility

    BCD tables only load in the browser

    See also