To and for.

Could anyone be generous enough to explain the difference between ‘to’ and ‘for’? For example: This cake is for you. When to use ‘to’ and when to use ‘for’. I need a clear explenation to the two please!

Thanks.

A dictionary would be a good place to start.
oxfordlearnersdictionaries.com/?cc=global

Tkank you for the reply Buseeesneees though I still have some confusion here.

In explaining ‘to’ meaning, no.7.(used to show the person or thing that receives something). And ‘for’ meaning, no.1. (used to show who is intended to have or use something or where something is intended to be put) and again my concern is difference in use related to people!!!

Another point regarding showing the direction where something goes toward. I hear it most of the time ,ex.: The plane is heading for Shanghai. Or: We’ll head for Europe. Is it correct?

Thanks again.