To have a website online, you have to pay for web hosting. The only alternative to this is services like Wix. With Wix, however, your domain will look like yourdomain.wix.com (that is, it’ll have the word “wix” in it). If you want your own website (not a sub-domain of Wix), with an actual URL (yourdomain.com), web hosting is required. You can learn more about how websites are set up here: https://websitesetup.org/ You’ll see that the first step is to get website hosting.