hide an element html css code example Example 1: hide element using css #tinynav1 { display:none } Example 2: hide in css display:none;