Lesson 3. Dragging and Dropping with HTML5
HTML5 supports drag-and-drop operations, where you can move elements and text around the browser window using a mouse or other pointing device.
That’s useful for such operations as letting the user move items into a shopping cart, or letting them customize what elements appear in their home page, and it’s a very popular part of HTML5.
Drag and drop is supported by a number of attributes added to HTML5 elements, such as the draggable attribute, which you set to true to make the element draggable. However, you do most of the work supporting drag and drop yourself, in a scripting language, such as JavaScript, as you’ll see.
Let’s jump into drag and drop operations immediately.
Welcome to Drag and Drop ...
Get Sams Teach Yourself HTML5 in 10 Minutes now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.