What is main difference between habit and attitude

A habit is a behavior that is performed repeatedly and often automatically, while an attitude is a way of thinking or feeling about something or someone. Habits are more concrete and observable actions, whereas attitudes are more abstract and can influence behavior. Habits tend to be more enduring and ingrained, while attitudes can be more fluid and subject to change.