Another way to say "a shirt is for attaching a tie" is "You can attach a tie to a shirt."