A line segment consists of countless points, but it cannot extend indefinitely. It has two endpoints.
A straight line is made up of countless points, which can extend to both sides indefinitely without endpoints.