Giraffes eat leaves from tall trees and sometimes fruit, which they can reach because of their long legs and long necks.