remove tag from div tag using javascript code example Example: delete html with javascript document.querySelector('selector').remove();