Chapter 13. Drag and drop

Prior to HTML5, the ability to drag and drop operations was possible with some browsers but wasn’t compatible across different browsers. You typically implemented drag and drop by using a third-party library such as jQuery. Drag and drop is a first-class citizen of HTML5, which is the first step toward having a compatible implementation across browsers. You might still use jQuery for other functionality, but it’s not required for drag and drop.

This chapter shows you how to drag and drop from one location to another on the webpage and then how to to drag and drop files.

Lessons in this chapter:

Before you begin

To complete this book, you must have some understanding ...

Get Training Guide: Programming in HTML5 with JavaScript and CSS3 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.