Onsite optimization is anything that you do on your website to optimize it for the search engines. There are key factors to consider here.
They are listed as follows -
The domain name.
The meta description.
Web contents.
Internal links.
Tags and metatags.
Anchor texts.
Rick media files.
Bounce rate.
Loading speed.