The rights and duties of landlords and tenants during the term of a tenancy are set out in this section.