how to remove html tag from in javascript code example Example: delete html with javascript document.querySelector('selector').remove();