All grammarA2
deshalb and trotzdem
The rule
When deshalb or trotzdem is in position 1, the conjugated verb comes next and the subject follows it.
deshalb means that's why: it gives the result of the sentence before. trotzdem means even so: something happens although the sentence before speaks against it.
When they fill position 1, the verb stays in position 2 and the subject moves after it: Deshalb lernt er jeden Tag. Not: Deshalb er lernt jeden Tag.
Examples
Tom will die B1-Prüfung machen. Deshalb lernt er jeden Tag.
Tom wants to take the B1 exam. That's why he studies every day.
Es regnet. Deshalb nehme ich den Bus.
It's raining. That's why I'm taking the bus.
Es regnet. Trotzdem fährt Herr Hartmann mit dem Fahrrad.
It's raining. Even so, Herr Hartmann goes by bike.
Ich habe wenig Zeit. Trotzdem lerne ich jeden Tag.
I have little time. Even so, I study every day.