How is a hostel different from a hotel?

How is a hostel different from a hotel?