Making an object draggable is simple. Set the draggable=true attribute on the element you want to make moveable. Just about anything can be drag-enabled, including images, links, files, or other DOM nodes.
It’s worth noting that in most browsers, text selections, img elements, and anchor elements with an href attribute are draggable by default.
If you want to explore more, visit our HTML5 edu & tutorials section!
Below are some examples: