A line is referred to as being 1 dimensional, it only has one dimension, length.
Flat shapes has both length and width so we call those two dimensional.
This is why we call solid shapes 3 dimensional. They have length, width and height.