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