What is a Segment in Math?

A segment, or a line segment, is typically seen in graphs or when learning geometry. A segment is different from a line because it starts and ends in distinct points whereas a line goes on forever.