It has to be hosted somewhere so people can access it on the internet. A Github repo won’t do that. A lot of people do theirs on codepen which handles that for you. So does replit and other online IDEs. You could pay for hosting. There are also free ways to host, like putting it in an AWS bucket. When I did my other projects, I put them on Git Pages, free static hosting that works through Github. Just make sure to put them in folders because you’ll have more than one.