Study the information when we use during, while, for.
We use these prepositions in different cases.
1. We use during with a noun.
During the film
2. While with a verb ( while I am studying)
3. For with a period of time ( for three days)
Examples:
We don’t like speaking during the meal.

I have been playing golf for two hours.

We didn’t talk while we were eating soup.