It is not off-line and on-line, It is on-page and off-page SEO.

The on-page search engine optimization factors under the webmaster's direct control. It is related to page structure and website.

Off-page SEO is process to increase visibility on search engines by link building activities like Article submission, Blog posting and commenting, Forums, Directory submission, Social bookmarking etc.