Building for the web
Another platform that Unity can build for is WebGL. Building for WebGL is pretty much the same as building for PC, Mac, and Linux. To get started, just click on File and then select build settings…
After clicking on Build settings… You should get the build settings window.
After the windows is open, select WebGL. If this is your first time building for WebGL, you have to click onto it and then click on the button at the bottom right to install it. In my example above, its already installed.
After selecting WebGL, simply click on build and your game will be built to be deployed as a WebGL app. Below is a gif of the entire process of creating a WebGL build.