The part of a line that connects two points.
It is the shortest distance between the two points.
It has a length.
Adding the word "segment" is important, because a line normally extends in both directions without end. But a line segment has definite end points.
Try moving points "A" and "B":