Once your HTML5 game is ready, the next step is publishing it so others can play. Here are the fastest and cheapest options, from GitHub Pages (free) to itch.io to reach the gaming community.
Upload the HTML5 game from C:\projects\my-game to GitHub and enable GitHub Pages to publish it online
cd C:\projects\my-game
git init && git add . && git commit -m "feat: complete Snake HTML5 game"
gh repo create my-snake-game --public --push --source=.
gh api repos/YOUR_USER/my-snake-game/pages -X POST -f source.branch=main -f source.path=/
# URL: https://YOUR_USER.github.io/my-snake-game
npm install -g netlify-cli
netlify login
netlify deploy --prod --dir . --site-name my-snake-game
# URL: https://my-snake-game.netlify.app