What's the difference between while and for?

I know the difference between these two words, While is often used to lead to a continuous event; For is often used to describe a state or situation that has lasted for a period of time. Give you a brief summary of the meaning, pronunciation and usage of these two words, and have a general understanding first ~ ~

Next, let's look at other differences between while and for:

1.While means something is happening or happening at the same time, and for means the duration of a period of time.

Example:

-While you are reading, I will cook dinner. ?

I'll cook while you are reading.

I studied French for three years in college. ?

I studied French in college for three years.

2.While is often used to express contrast and contrast, while for emphasizes the scope of time.

Example:

It's hot outside and cold inside. ?

It's hot outside and cold inside.

-I'll take two weeks off. ?

I will go on holiday for two weeks.

3.While can mean "although", which means that two facts are contradictory; On the other hand, it doesn't mean this.

Example:

Although I know it's unhealthy, I still like eating junk food. ?

Although I know junk food is unhealthy, I still like it.

-I brush my teeth before going to bed for good oral hygiene. ?

For oral health, I brush my teeth before going to bed.

4.While is often used to introduce a continuous event; For is often used to describe a state or situation that has lasted for a period of time.

Example:

-I saw a beautiful sunset when I was jogging. ?

I saw a beautiful sunset while jogging.

-It rained for three days. ?

It rained for three consecutive days.

5.While pursues the correlation between two events, while for pursues the duration of events.

Example:

-When you take a shower, can you wash your hair?

Can I wash my hair when I take a shower?

-I worked for two years before I got promoted. ?

I worked for two years before I was promoted.