Pat on the Back

What does the idiom “pat on the back” mean?

Definition: Public recognition for an accomplishment; a public compliment

Example: I had a good day at work! The boss gave me a pat on the back for the ad I designed.