z-index property applies to positioned elements and sets their order along the z-axis, which points out of the screen.z-index places an element in front of one with a lower value when they overlap.z-index.z-index controls the stacking order of elements.