delete html javascript code example
Example 1: javascript remove html element
const labelEmail = document.getElementById('label-email');
labelEmail.remove();
Example 2: delete html with javascript
document.querySelector('selector').remove();
const labelEmail = document.getElementById('label-email');
labelEmail.remove();
document.querySelector('selector').remove();