Here are some of the factors that affect On-Page Optimization:
title tags
description tags
alt-tags (this is use when describing images)
keywords
meta tags
h1/h2 tags (headings)