![]() |
VOOZH | about |
The dropzone attribute in HTML is used to specify whether the dragged data is copied, moved, or linked when it is dropped on any element. This attribute is new in HTML5.
Syntax:
<element dropzone = "move | link | copy">Attribute Value:
Example: In this example, we use the dropzone attribute on <div> elements. It defines how dragged items should be handled: copied, moved, or linked when dropped into the respective divs.
Output:
👁 https://media.geeksforgeeks.org/wp-content/uploads/dropzone.pngNote: The dropzone attribute doesn't support by the popular browsers.