1. Get shared hosting (recommended for new websites)
2. Get a domain (Namecheap, GoDaddy, etc.)
That's it. You're coded html/php files, upload it to your shared host using cpanel/whatever panel offered or filezilla then point the DNS in your domain registrar.
wait for it to propagate. Then that's it.
you have a new website published for all people on the interwebz to see when visited with your customized web address.