Objective: Build Unity project with compatibility for Web based hosting.
Setting your project for WebGL is very simple and similar to how you would build for any other platform.
Use the switch platform option on the bottom right and wait for your project to recompile. If there are any fatal errors you will be alerted during this stage.
Once it has recompiled, build it and save it to your preferred location. You can then host the build folder on a personal website or Unity’s “Unity Play”. Using HTML5, you can imbed the files into your site. Make sure to test it out yourself once you post it, in case there are any issues for the end user.