HTML draggable Attribute

This draggable attribute when set to element allows the content inside it to be easily drag and drop with other elements.

Note : With JavaScript they are used with drag and drop operations

Using HTML draggable Attribute

Here is an example to this HTML attribute



Try dragging this text paragraph into above box and see the results.

Different attribute values that are available

  • True : This value when written allows the elements to be draggable.
  • False : This value specifies that elements are not draggable.
  • Auto : This auto value specifies the default behavior of the browser.
Tip : Links and Images are draggable by default.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *