Unable to publish WebGL project
Hello, I'm fairly new to Unity and coding and everything in general but I'm trying to get into doing game development and have been following the courses that Unity has to offer. During doing so, the most recent one had me create a little scene in Unity and wanted me to publish it. I went through the steps it told me to take to get to that point but ended up having to follow another tutorial specifically about WebGL in order to do so. After all was said and done, I finished building the project and chose the "Build and Play" option or whatever it was and waited for it to complete. The project loaded fine and then I closed it to see what I needed to do next. It wants me to upload the URL for the WebGL project but when I try and open the index.html it created it tells me that my browser can't open it without it being hosted on a local server. I've tried to re-open the project again in the Unity Hub to check whatever settings I'd need to see about fixing this but when I go to do so it tells me that it can't open the project and to check the logs as to why but when I open the logs it just brings up a blank screen in Visual Studio. I tried checking online and found out that you apparently can't open a project once it's been built? Which confuses me because how would anyone update their game in the future if there's like additional content or something?
Anyways, if someone could please help me with this I would greatly appreciate it. Every time I try and look into it I'm just met with another question and can't seem to answer why this is happening or what I need to do.