What are two endpoints and all of the points between them called?

A line segment (sometimes just segment) is a pair of endpoints and all the points on a line between them.