You Can’t Judge a Book by Its Cover

What does the idiom “You Can’t Judge a Book by Its Cover” mean?

Definition:

You can’t know people (or things) well by their external appearances.

For example:

“Frank looks like a thug. But he actually enjoys Shakespeare and the opera. You can’t judge a book by looking at the cover.”