Learn how to create a draggable HTML element with JavaScript and CSS.
Read on how to do it in this tutorial: https://www.w3schools.com/howto/howto_js_draggable.asp
Try it yourself here: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_draggable