Together. They describe how far the client area is inset by borders.
Compatibility
Browser Support
Element.clientTop is Baseline Widely available (MDN: since July 2015). Safe across modern and older evergreen browsers.
✓ Baseline · Widely available
Element.clientTop
Read-only top border width in CSS pixels — long-standing CSSOM View support.
99%Widely available
Google ChromeAll versions · Desktop & Mobile
Full support
Mozilla FirefoxAll versions · Desktop & Mobile
Full support
Apple SafariAll versions · macOS & iOS
Full support
Microsoft EdgeAll versions · Chromium & Legacy
Full support
Internet ExplorerIE 6+ · Legacy environments
Full support
OperaAll modern versions
Full support
clientTopExcellent
Bottom line: Safe for production. Remember it equals border-top-width (rounded) and ignores padding/margin.
Frequently Asked Questions
A read-only integer: the width of the element's top border in CSS pixels. MDN notes it is always equal to border-top-width, rounded to an integer.
No. MDN marks Element.clientTop as Baseline Widely available (since July 2015). It is not Deprecated, Experimental, or Non-standard.
No. It is read-only. Change the top border with CSS (or element.style), then read clientTop again.
offsetTop points at the top of the border box (not the margin). The client area starts just below the border, so the gap between them is the top border — clientTop.
When the computed border-top-width is zero. Padding and margin do not change clientTop.
clientTop is the top border width; clientLeft is the left border width. Together they describe the client area's border offset.