How to delete a div in html using js code example Example: remove div javascript var div = document.getElementById('div-01'); div.remove();