+ 1
You have to use an web host. And select a URL there and upload your code there. then people could visit your website if they have the URL.
If you are using free webhosts then the URL may look like "example. hostname.com" or you could buy a domain and pay monthly/yearly for it.
This is my website that I hosted using webhost for free:
https://peeches-inc.000webhostapp.com