If you want to earn from online you have to select on niche sector. Suppose you select SEO as your niche sector. Then you should you learn it and know it. Then you should create account on various earning site like FREELANCER, Fiverr etc. Then you bid on that site and propose your offer. From Fiverr you can get your work firstly than other website.