what is the difference between its and it's

He gave its head a little pat. It's considered polite to do that.
it is = it's (contraction)
its = a possessive pronoun

Thank you