HTML | dropzone Attribute
The dropzone attribute in HTML is used to specify whether the dragged data 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:
- move: This attribute is used to drag the data and drop it into new location.
- copy:This attribute is used to copy the drag data into new location.
- link: This attribute is used to drop the data will result into original data.
Example:
<!DOCTYPE html> <html> <head> <title>ruby tag</title> <style> body { text-align:center; } h1 { color:green; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2> dropzone attribute</h2> <div dropzone="copy">GFG</div> <div dropzone="move">GFG</div> <div dropzone="link">GFG</div> </body> </html> |
chevron_right
filter_none
Output:

Note: The dropzone attribute doesn’t support by the popular browsers.
Recommended Posts:
- HTML | min Attribute
- HTML | value Attribute
- HTML | <li> value Attribute
- HTML | <a> rel Attribute
- HTML | low Attribute
- HTML | <map> name Attribute
- HTML | <img> src Attribute
- HTML | <img> alt Attribute
- HTML | dir Attribute
- HTML | for Attribute
- HTML | autocomplete Attribute
- HTML <button> value Attribute
- HTML | <td> width Attribute
- HTML | form Attribute
- HTML | <td> height Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



