What is prospectus and red herring prospectus?

In the context of IPOs, a prospectus is a major document prepared by the issuing firm. The preliminary prospectus is also known as a red herring.