〜たほうがいい This pattern is used to give advice ("you had better ~"). It compares two choices and says this one is better. With the ない-form it means "you had better not ~".
Formation
た-form + ほうがいい ・ ない-form + ほうがいい
| 休む | 休んだ + ほうがいい | 休んだほうがいい |
| 行く | 行った + ほうがいい | 行ったほうがいい |
| 食べる | 食べない + ほうがいい | 食べないほうがいい |
Examples
熱があるから、今日は休んだほうがいいですよ。
You have a fever, so you'd better rest today.
夜遅くに甘い物を食べないほうがいいです。
You'd better not eat sweets late at night.