js how to delete an html elemetn 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();