A rectangle is a parallelogram whose sides intersect at 90∘ angles.
A square is a specialized case of the rectangle.
A square is a special kind of rectangle, it is one where all the sides have the same length. Thus every square is a rectangle because it is a quadrilateral with all four angles right angles. However not every rectangle is a square, to be a square its sides must have the same length.