html tutorial - dropzone Attribute in HTML - html5 - html code - html form



  • The dropzone attribute is used to define whether the data is copied or moved or linked when it is dropped on an element.
  • The dropzone attribute is a section of the Global Attributes.

Syntax for dropzone attribute in HTML:

<div dropzone="copy">

Difference between HTML 4.01 and HTML 5 for dropzone Attribute:

HTML 4.01

  • The dropzone attribute has not been defined in HTML 4.

HTML 5

  • The dropzone attribute is added newly.

Applies To:

Element Attribute
All HTML Elements dropzone

dropzone Attribute Values:

Value Description
copy Dropping the data will result in a copy of the dragged data.
link Dropping the data will result in that the dragged data is moved to the new location.
move Dropping the data will result in a link to the original data.

Browser Support for dropzone Attribute in HTML:

No No No No No

Related Searches to dropzone Attribute in html