The scrollTop value of an element represents the distance between the element's top and its uppermost visible content. The scrollTop value of an element is 0 when its content does not cause a vertical scrollbar.