You will have to learn a new language to pick up web development. Most games are not made in Web Languages. Make sure to keep best practices in mind when you are learning a new language. Try to take the time and find out what is the best way to code before jumping in and coding up your classes. Every language is different.
Web Development is great don't fall victim to the thought that you are either a game developer or web developer. You can be both. If you're reading this article and your are new to coding then i definetly recommend learning web development. It is a great way to start learning coding since it s so easy to startup. React is my favorite way to make websites but there are so many different ways to create websites that you should use what you are comfortable with.