Free web hosting is pretty unreliable. If you're an absolute beginner, you could start with shared hosting, but I recommend transferring to paid web hosting as soon as you can. There are many cheap plans with reliable hosting providers. Do a thorough research before you pay for anything.