You can see the following table to understand the and in the first one:
The difference between in the and on the: the difference 1: indicates the position-"in the" indicates a certain range or area, and is used to describe something or someone in a closed or bounded space. Example 1: The cat is in the box. The cat is in the box. )
Ex. 2: She lives in the city. She lives in the city. )
-"Being" means being on a surface or plane, which is used to describe the state that something or someone is in contact or connected with a surface. Example 1: The book is on the desk. The book is on the table. )
He left the key on the counter. He left the key on the counter. )
Difference 2: indicating time-"in the middle" indicates a certain period of time, which is used to describe the occurrence of events or actions within a specific time range. Example 1: See you tonight. )
Ex. 2: She was born in11990s. She was born in the 1990s. )
-"On the" is usually used on a specific date or day of the week, indicating a specific time point. Example 1: The party was held on July 5th. The party was held in July 15. )
Ex. 2: We have a meeting on Monday. We have a meeting on Monday. )
Difference 3: indicating state-"being in the middle" can be used to indicate physical or emotional state. Example 1: She is in a good mood today. )
Ex 2: He is in the hospital. He is in the hospital. )
-"Shang" is usually used to indicate a specific behavior or state. Example 1: He is on the phone. )
Ex. 2: She is in the team. She is a member of this team. )
Difference 4: Represents a medium or a tool-"in" is used to describe the content or state in a certain medium or tool. She read about it in the newspaper. )
Example 2: The answer is in the book. The answer is in the book. )
-Used to describe the release of information or content "on" media or tools. Example 1: You can find out about it on the website. You can see this information on the website. )
The news was announced on TV. The news was announced on TV. )