Attract hummingbirds to your yard and garden by planting some of their favorite flowers and by hanging nectar feeders when blooms are not plentiful. In addition to nectar, hummingbirds consume large numbers of tiny insects, such as mosquitoes, aphids, and whiteflies.