Use the upper edge
A footie ends below the ankle. Ankle, crew and mid-calf socks stop progressively higher. Knee-highs finish below the knee, over-the-knee socks finish above it, and thigh-highs reach the middle or top of the thigh. Pantyhose and tights continue to the waist.
Stockings use suspenders, stay-ups use an internal grip, and over-the-knee socks rely on the top band. Check the image and the length filter together because these words are mixed in everyday use.