A rectangle is a quadrilateral with all four angles right angles. It follows form this that the opposite sides are parallel and of the same length. A square is a quadrilateral with all four angles right angles and all four sides of the same length.
Also note that a square is always a rectangle, but a rectangle is not always a square.