On page optimization is used for optimize the webpage whereas off page optimization is used for optimize the links to get quality backlinks..