Easy Tutorial
❮ Tag Doctype Ev Onchange ❯

HTML draggable Attribute

HTML Global Attributes

Example

Draggable paragraph:


Browser Support

Internet Explorer 9+, Firefox, Opera, Chrome, and Safari support the draggable attribute.

Note: Internet Explorer 8 and earlier versions do not support the draggable attribute.


Definition and Usage

The draggable attribute specifies whether an element is draggable or not.

Tip: Links and images are draggable by default.

Tip: The draggable attribute is often used for drag and drop operations. Read our HTML5 Drag and Drop Tutorial to learn more.


Differences Between HTML 4.01 and HTML5

The draggable attribute is new in HTML5.


Syntax

Attribute Values

Value Description
true Specifies that the element is draggable.
false Specifies that the element is not draggable.
auto Uses the browser's default behavior.

❮ Tag Doctype Ev Onchange ❯