I looked at Unreal a long time ago. MSGhero is correct - you have a choice between either looking through their docs and finding the last version that inherently supported web exporting (which is what I did) or download the latest version and hope that user-maintained code somewhere can allow it to export to web without issues.
Then I saw that a web export for the simple placeholder single-small-level microgame that comes as a template option if you start a new project ends up being about 100 mb, zipped, so I was done with it. Don't use Unreal for web 3D games, use Godot (version 3.x not 4 because of issues of Mac compatibility with web exports) or Unity.
I also agree with not trying to make your first game be 3D. First think of a 2D game you'd like to make, then do a tutorial and while you're doing it see what techniques you could modify to incorporate into your game (which might help push you to really learn what they're doing and why so you can adapt it to your game), make the tutorial game, then make your 2D game. With Unity the one that taught me pretty much everything I needed to know to make a game was the Ruby tutorial, with Godot I wasn't aware of a good tutorial so I wrote my own tutorial for beginners who've downloaded the engine and looked through their docs on making the example Dodge the Creeps microgame and are ready for something more like a NewGrounds game jam type game.