Depth counts edges from the root down to a node; the root has depth zero. Height counts edges on the longest path from a node down to a leaf; a leaf has height zero.
So depth looks upward toward the root, and height looks downward toward the deepest descendant. The whole tree's height equals the root's height, which is the longest root-to-leaf path. That number drives cost: search and insert run in time proportional to height.
A common mix-up is swapping the two or counting nodes instead of edges. Some texts count nodes, making both values larger by one, so always confirm the convention. The practical point is that a short height means fast operations. When people say a tree is O(log n), they mean its height stays near log n rather than growing linearly.
Rewriting in plainer words…
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.