There are a great many different sailboats.
A sailing dinghy is a small boat up to about 7 metres (23 ft.) which usually has a centreboard. It does not have a cabin. Usually, a sailboat has two sails: a mainsail and a jib and sometimes a spinnaker.
A sailing yacht is a larger boat with a keel and it normally has a cabin. These types of boats can sail long distances, sometimes even around the world. Sometimes they have only one mast but they can have two or three.
A tall ship is an even larger sailing boat which were used before steam engines were invented. These were used for carrying cargo from port to port in days gone by. Now they are usually used as training ships for young people. A tall ship usually has more than one mast.