In contractions, the apostrophe takes the place of missing letters.
It’s stands for It is and can’t for cannot.
The apostrophe is also used to mark the omission of the first two digits of a year or years.
Exercise: The apostrophe 1
Exercise: The apostrophe 2