css change cursor when hover code example Example 1: on hover change cursor li { cursor: pointer; } Example 2: onhover mouse pointer css li { cursor: pointer; }