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