You earn money when you work for someone. If you don't have anyone to work for, then you don't earn. So, if you want to earn money on line, get hired first.
You can make money by selling. If you have some valuable skill, then start selling the skill. The more you sell the more you make