Your budget, situation and personal wishes will determine the type of accommodation you stay in.
Backpackers will find these sites useful:
Those looking for a higher degree of comfort can check out places around the world through:
Hospitality around the world in members' homes
Don't forget Hostelling International:
Always book your first night's accommodation in advance.