inline css hide code example Example 1: hide element using css #tinynav1 { display:none } Example 2: css hide element .classname { display: none; }