A line segment is a part of a line that has two defined endpoints. A line segment represents a collection of points inside the endpoints and it is named by its endpoints.
have a nice day, ily!