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