hide and show div using css with example Example: how to hide div in html document.getElementById('elementName').hide();