it's or its

When do we use it's and its?

Word Explanation Example
it's Short/contracted form of it is It's a boy.
Short/contracted form of it has It's been raining for five hours now.
its Possessive determiners never have apostrophes. England is famous for its castles.