how to hide html tag and show it code example Example: how to hide div in html document.getElementById('elementName').hide();