hide a div in html style code example Example: how to hide div in html document.getElementById('elementName').hide();